用.htaccess实现二级域名功能

  • A+
所属分类:SEO优化

用.htaccess实现二级域名功能

将下面的网址替换为你的网址即可。

  1. RewriteCond?%{HTTP_HOST}?^music.openi.top$
  2. RewriteCond?%{REQUEST_URI}?!^/music/
  3. RewriteCond?%{REQUEST_FILENAME}?!-f
  4. RewriteCond?%{REQUEST_FILENAME}?!-d
  5. RewriteRule?^(.*)$?/music/$1
  6. RewriteCond?%{HTTP_HOST}?^music.openi.top$
  7. RewriteRule?^(/)?$?music/index.php?[L]

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: