apache - I can't add a second url rewrite in my .htaccess file -


i have following code, , working fine, , need add 1 more section

options +followsymlinks -multiviews -indexes  rewriteengine on rewritebase /  rewritecond %{the_request} ^[a-za-z]{3,}\s/+coinshowpage\.php\?coinshow=([^\s]+) [nc] rewriterule ^ http://www.example.com/%1? [r=301,l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^([^/]+)/?$ coinshowpage.php?coinshow=$1 [qsa,l] 

i need add redirect page. tried adding code @ bottom, , not working id field being used below string , 1 above numeric if makes difference.

rewritecond %{the_request} ^[a-za-z]{3,}\s/+dealerpg\.php\?id=([^\s]+) [nc] rewriterule ^ http://www.example.com/%1? [r=301,l] rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^([^/]+)/?$ dealerpg.php?id=$1 [qsa,l] 

i not getting 404 error, seems not passing id variable. totally lost, , appreciated.


Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -