Forum Moderators: phranque

Message Too Old, No Replies

URL rewriting assistance

         

iceman42

6:14 pm on Sep 10, 2008 (gmt 0)

10+ Year Member



I am trying to see if I have these rules written correctly to have them work in the real world.

RewriteRule ^/?products/overview.html$ display.php?text=18 [L]
RewriteRule ^/?products/tag-bodyspray.html$ display.php?text=158 [L]
RewriteRule ^/?category/smelly-stuff.html$ display.php?text=2 [L]
RewriteRule ^/?subcategory/large-and-in-charge.html$ display.php?text=1098 [L]

When I try and access http://www.example.com/products/overview.html it does go to the display page but just the display page, so it is losing the name value pair along the way.

This doesn't seem to work either.

RewriteEngine On
RewriteRule ^/products/overview.html$ /display.php?text=18
RewriteRule ^/products/tag-bodyspray.html$ /display.php?text=158
RewriteRule ^/category/smelly-stuff.html$ /display.php?text=2
RewriteRule ^/subcategory/large-and-in-charge.html$ /display.php?text=1098

I just get a 404 error.

What am I doing wrong?

[edited by: jdMorgan at 6:57 pm (utc) on Sep. 10, 2008]
[edit reason] example.com [/edit]

iceman42

6:19 pm on Sep 10, 2008 (gmt 0)

10+ Year Member



Found the issue.