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

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -