S SiKing Registered MemberEstablished Member โ 20 โ Impact 6 May 28, 2006 776 views 4 replies #1 Hey- just need a little help with .htaccess. I have urls which are like filename?category=jokes and I just need to change it to filename/jokes/. Thanks
Hey- just need a little help with .htaccess. I have urls which are like filename?category=jokes and I just need to change it to filename/jokes/. Thanks
Dan Buy my domains.VIP Member VIP โ 15 โ Impact 108 May 28, 2006 #2 RewriteEngine on RewriteRule filename\?category=(.*)? filename/$1/ I think you might want to make it category/jokes instead, and to do that just change filename to category
RewriteEngine on RewriteRule filename\?category=(.*)? filename/$1/ I think you might want to make it category/jokes instead, and to do that just change filename to category
-NB- Formerly ArrayEstablished Member โ 15 โ Impact 3 Jun 8, 2006 #3 Kinda diggin' this up, but that code it wrong. It should be Code: RewriteEngine On RewriteRule ^filename/(.*)(/?)$ filename.php?category=$1 You had it backwards
Kinda diggin' this up, but that code it wrong. It should be Code: RewriteEngine On RewriteRule ^filename/(.*)(/?)$ filename.php?category=$1 You had it backwards