-
mod_rewrite question
Hi
I'm getting confused somewhere along the line.
If you take a look at this site...
http://www.lifeofsmallbeer.co.uk/portfolio/
Links work from there into the portfolio pieces and into the categories but from the category pages to the portfolio pieces brings a 404. I really don't know what I'm doing wrong. It's no doubt something simple.
These are my rewrite rules
Code:
RewriteRule ^portfolio/([^./]+)/([^./]+)/$ /portfolio/portfolio.php?category_name=$1&friendlyurl=$2 [L]
RewriteRule ^portfolio/([^./]+)/$ /portfolio/category.php?category_name=$1 [L]
If someone could take a look It would be most appreciated :)
Jamie
-
hmm,
what's the link that gives a 404 ? :)
:) Andrea
-
If you click the small "beat surrender" image from this page...
http://www.lifeofsmallbeer.co.uk/portfolio/personal/
Clicking it from this page works fine though...
http://www.lifeofsmallbeer.co.uk/portfolio/
Thanks for replying :)
-
OMG. Sorry just realised I've been thick.
It was pointing to /news/personal/blah_blah/ instead of /portfolio/personal/blah_blah/
that's what you get for working through the night!
-
OK :),
one small note now...
Instead of /$ use /?$
Doing that you will cover trailing slashes too ;)
:)
-