wordpress个人开元体育app官方版最新下在线体彩投注载网站网站category分类目录链接301跳转
用的是Apache服务器类型的虚拟主机,
个人网站建站时,现改为http://www.xxx.com/categor/moban由于原来去掉/category/目录链接已收录很久了,新建个文件夹,
wordpress程序建站的都知道在后台添加分类目录时候,每个栏目(或二级目录)都会自动加个category,
RewriteEngine OnRewriteBase /RewriteCond %{HTTP_HOST}!^xxx.com$ [NC]RewriteRule ^(.*)$ http://www.xxx.com/$1 [L,R=301]RewriteRule ^moban$ http://www.xxx.com/category/moban [L,R=301]RewriteRule ^seo$ http://www.xxx.com/category/seo [L,R=301]<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteRule ^index\.php$ - [L]RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule . /index.php [L]</IfModule>
如果你网站之前也是去掉分类目录category前缀,都去掉category二级目录。即可实现301重定向跳转(xxx改为自己的域名)。可参考上面301跳转规则(比较简单,更好的SEO优化效果,降低
本文地址:http://e88rw.xny028cc.com/artistic/6.html
版权声明
本文仅代表作者观点,不代表本站立场。
本文系作者授权发表,未经许可,不得转载。