Hi all,
I'm having trouble getting the Apache mod_rewrite to work correctly on my website. Basically, I want /gallery/cake##.html to act as an alias for /gallery.php?i=## (where ## is a number). However, at the moment, it seems to be only redirecting to /gallery.php and ignoring the variables.
Here is my .htaccess file:
If I request the page http://www.cakeinyourface.com/gallery/cake01.html it does not do pay any attention to the i=01 I'd hoped for. However cake01.html?i=01 does what I would expect (but obviously, not in the way I want.)
Does anyone have any experience with mod_rewrite that could help?
I'm having trouble getting the Apache mod_rewrite to work correctly on my website. Basically, I want /gallery/cake##.html to act as an alias for /gallery.php?i=## (where ## is a number). However, at the moment, it seems to be only redirecting to /gallery.php and ignoring the variables.
Here is my .htaccess file:
| Code: |
| Options +ExecCGI +FollowSymLinks
RewriteEngine on AddHandler cgi-script .cgi .pl RewriteRule ^gallery/cake([0-9]*)\.html$ gallery.php?i=$1 |
If I request the page http://www.cakeinyourface.com/gallery/cake01.html it does not do pay any attention to the i=01 I'd hoped for. However cake01.html?i=01 does what I would expect (but obviously, not in the way I want.)
Does anyone have any experience with mod_rewrite that could help?
