cinq
08-08-2004, 03:03 PM
Not sure if this is the right place to post this, mods please move accordingly if not. Thanks
Have an issue with mod_rewrite.
I ran the online generator at WebmasterTool kit and this is what was generated for me.
Options +FollowSymLinks
RewriteEngine on
RewriteRule mypage/(.*)/(.*)/(.*)/(.*)/$ /forum/mypage.php?$1=$2&$3=$4
This is the common URL without mod_rewrite implemented :
http://www.mydomain.com/forum/mypage.php?do=view&id=1
Using the above code, this is what will be displayed :
http://www.mydomain.com/forum/mypage/do/view/id/1
How do I go about only listing this:
http://www.mydomain.com/forum/mypage/1
What changes must I make to the mod_rewrite code above ?
Any help would be most appreciated.
Thanks :)
Have an issue with mod_rewrite.
I ran the online generator at WebmasterTool kit and this is what was generated for me.
Options +FollowSymLinks
RewriteEngine on
RewriteRule mypage/(.*)/(.*)/(.*)/(.*)/$ /forum/mypage.php?$1=$2&$3=$4
This is the common URL without mod_rewrite implemented :
http://www.mydomain.com/forum/mypage.php?do=view&id=1
Using the above code, this is what will be displayed :
http://www.mydomain.com/forum/mypage/do/view/id/1
How do I go about only listing this:
http://www.mydomain.com/forum/mypage/1
What changes must I make to the mod_rewrite code above ?
Any help would be most appreciated.
Thanks :)