Forum Moderators: phranque
I'm pretty new at this sort of thing, I've been using mod_rewrite for really simple changes to URLs in the past, but I've been asked to convert an older site that runs from pure HTML to something easier to update.
I was planning on keeping their basic structure, and doing the database stuff around it.
Their URLS currently look like this:
TOPICreviewFIRSTLETTER.html
I was hoping to make a rewrite rule that would convert it over to
review.php?subject=TOPIC&letter=A (for example)
RewriteRule (.*)review(.*)\.html$ /reviews.php?subject=$1&letter=$2
This is causing a server error when I try it.
I am completely new to this, so if I'm way off with my syntax then please don't laugh too much!
Any advice appreciated.
I think I found the problem, the links to the reviews themselves are re-written from a similar file name:
RewriteRule review(.*)\.htm$ /review.php?newsid=$1
If I remove that rewrite then the other one works, put it back in and neither work.
Is it possible to have both re-writes working? Or will I have to change he file name on one of them so that there isn't a conflict?
Thanks again.