php - Redirection of indexed dynamic urls -


i want make 301 redierects 1 urls urls. example

this url //muscleathletes.com/index.php?page=videos&section=view&vid_id=100019 to

//muscleathletes.com/?vid_id=100019

iam usin in .httacces

rewriterule ^vid_id=([^/]+) index.php?page=videos&section=view&vid_id=$1&%{query_string} [r=301,l] 

but rule not working can help

you can use rule in root .htaccess:

rewriteengine on rewritebase /  rewritecond %{query_string} ^vid_id=[0-9]+$ [nc] rewriterule ^/?$ index.php?page=videos&section=view [r=301,l,qsa] 

Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -