大章力百度排名优化博客
9年网络营销个人爱好者

APACHE伪静态SEO优化地址和301指向代码

APACHE不带www域名301到www.域名

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.imeirongyi.com$ [NC]
RewriteRule ^(.*)$ http://www.imeirongyi.com/$1 [L,R=301]

APACHE帝国cms TAG伪静态  为 /tags-4/ 格式

RewriteCond %{QUERY_STRING} ^(.*)$
RewriteRule ^tags-(.*)/$ e/tags/index.php?tagid=$1

APACHE网站2级域名重定向到一级了目录代码

RewriteBase /
Redirect permanent http://news.imeirongyi.com/ http://www.imeirongyi.com/news/
Redirect permanent http://guide.imeirongyi.com/ http://www.imeirongyi.com/guide/
Redirect permanent http://knowledge.imeirongyi.com/ http://www.imeirongyi.com/knowledge/
Redirect permanent http://beauty.imeirongyi.com/ http://www.imeirongyi.com/beauty/
Redirect permanent http://brand.imeirongyi.com/ http://www.imeirongyi.com/brand/
Redirect permanent http://picture.imeirongyi.com/ http://www.imeirongyi.com/picture/
Redirect permanent http://video.imeirongyi.com/ http://www.imeirongyi.com/video/

分享到:更多 ()

评论 抢沙发

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址

大章力9年专业网站优化爱好者 分享帝国cms和百度SEO

联系我们关于我们