Forum Moderators: phranque
RewriteRule (.*)/(.*)\.html$ /album\.php?album=$1&show=$2
RewriteRule (.*)/(.*)\.html$ /album\.php?album=$1&nbpage=$2
but it doesn't. If I disable one of them, the other one works, but I want them BOTH to work at the same time. How can I do that?
Please help me!
/Helen
Am no mod_rewrite expert, but this might work, placing [NE,L] after the first rule. If that don't work, Jim Morgan will be able to answer this one I am sure.
RewriteRule (.*)/(.*)\.html$ /album\.php?album=$1&show=$2 [NE,L]
RewriteRule (.*)/(.*)\.html$ /album\.php?album=$1&nbpage=$2
See message two [webmasterworld.com] for further explanation.
-gs
What do you mean when you say you want these BOTH to work?
Since the patterns are the same, whichever rule you place first will always rewrite a request for <something>/<something>.html to /album.php and add on the query string. Then the second rule will never match, because the URL has been changed to /album.php, and therefore won't match a pattern with ".html" in it.
It might be simpler if you state the overall goal along with the implementation problem. Some detail appears to be missing.
Jim