[英]Redirection of indexed dynamic urls
我想使301从一个URL重新定向到另一个URL。 例如
此URL //muscleathletes.com/index.php?page=videos§ion=view&vid_id=100019
//muscleathletes.com/?vid_id=100019
我在.httacces中使用
RewriteRule ^vid_id=([^/]+) index.php?page=videos§ion=view&vid_id=$1&%{QUERY_STRING} [R=301,L]
但规则不起作用可以帮忙吗
您可以在根.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.