[英]Redirection of indexed dynamic urls
I want make 301 redierects from one URLs to another URLs. 我想使301从一个URL重新定向到另一个URL。 For example 例如
This URL //muscleathletes.com/index.php?page=videos§ion=view&vid_id=100019 to 此URL //muscleathletes.com/index.php?page=videos§ion=view&vid_id=100019
//muscleathletes.com/?vid_id=100019 //muscleathletes.com/?vid_id=100019
iam usin this in .httacces 我在.httacces中使用
RewriteRule ^vid_id=([^/]+) index.php?page=videos§ion=view&vid_id=$1&%{QUERY_STRING} [R=301,L]
but the rule not working can you help 但规则不起作用可以帮忙吗
You can use this rule in root .htaccess: 您可以在根.htaccess中使用此规则:
RewriteEngine On
RewriteBase /
RewriteCond %{QUERY_STRING} ^vid_id=[0-9]+$ [NC]
RewriteRule ^/?$ index.php?page=videos§ion=view [R=301,L,QSA]
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.