你好,我想改变与重写规则的URL,这样重写规则更改URL
http://www.myweb.com/camisetas/something.html
到
http://www.myweb.com/catalogo/something.html
something.html是可变的。
感谢
你好,我想改变与重写规则的URL,这样重写规则更改URL
http://www.myweb.com/camisetas/something.html
到
http://www.myweb.com/catalogo/something.html
something.html是可变的。
感谢
您可以使用此规则:
RewriteEngine On
RewriteRule ^camisetas/(.+)$ /catalogo/$1 [L,NC,R=301]
尝试在你的.htaccess文件放上:
RewriteEngine ON
RewriteRule ^/camisetas/(.*)$ http://www.myweb.com/catalogo/$1 [R=301,L]
它工作正常非常感谢,我删除/从camisetas – user1524138