I’m using mod_rewrite to write more user friendly URLS for my site.
I copied and modified a working rule for another page, but it doesn’t seem to want to work…
Here’s the rule
RewriteRule ^list/(.*)/page/([0-9])/$ list.php?date=$1&page=$2
The working rule lookst like this
RewriteRule ^read/(.+)/$ read.php?target=$1
As far as I can see, the new rule should work…
If anyone can suggest why it doesn’t and possibly provide a fix, I’d greatly appreciate it
Thanks for your time!
Boy do I feel like an idiot now…
I had a look at this again this morning when I got in to work and found that there actually wasn’t anything wrong with the rule. I hadn’t changed my links…
For anyone referencing this, experiencing similar problems:
If you write a RewriteRule like I have above, make sure you change your link
hrefattributes to use the new URLSo, in my case…
The links have to change from
To
I forgot to change the links derp