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!!! Quote Link to comment 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] Quote Link to comment 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... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.