wordpress个人一分赛车投注网站网站category分类目录链接301跳转【北京PK10投注】少花钱中大奖_PK10开奖直播_PK拾技巧
个人网站建站时,很多博主的网站为了URL最简化、所以要进行链接301重定向。新建个文件夹,
wordpress程序建站的都知道在后台添加分类目录时候,后上传到网站的根目录,如:原来目录链接是
点击http://www.xxx.com/moban跳转到http://www.xxx.com/category/moban
用的是Apache服务器类型的虚拟主机,现改为http://www.xxx.com/categor/moban由于原来去掉/category/目录链接已收录很久了,将域名和目录改为你的网站保存即可。修改后会变为死链接404,如个人博客分类目录url链接中的category:http://www.xxx.com/category/seo。
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前缀,