GregL83 Posted April 21, 2010 Share Posted April 21, 2010 Hey, I am using the mod rewrite module with apache. I have a slug system similar to wordpress. I am trying to write a rewrite rule with not much sucess. So far I have RewriteRule ^locate/([A-Za-z0-9,'-]+)\?s=(d)/?$ locater2.php?ct=$1&s=$2 [L] This isn't working and I can't figure out why... the url should look something like: locate/jamestown?s=d When I try the same rewrite rule without the get param, it works fine... i.e.: RewriteRule ^locate/([A-Za-z0-9,'-]+)/?$ locater2.php?ct=$1 [L] locate/jamestown Thanks in advance!!! Link to comment https://forums.phpfreaks.com/topic/199216-mod-rewrite-not-working-with-query-params/ Share on other sites More sharing options...
GregL83 Posted April 21, 2010 Author Share Posted April 21, 2010 also, i've tried this without any success either: RewriteRule ^locate/([A-Za-z0-9,'-]+)/?$ locater2.php?ct=$1 [L,QSA] Link to comment https://forums.phpfreaks.com/topic/199216-mod-rewrite-not-working-with-query-params/#findComment-1045560 Share on other sites More sharing options...
GregL83 Posted April 21, 2010 Author Share Posted April 21, 2010 HUH!!! I tried it again with the QSA flag and now it works... Link to comment https://forums.phpfreaks.com/topic/199216-mod-rewrite-not-working-with-query-params/#findComment-1045561 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.