源码网商城,靠谱的源码在线交易网站 我的订单 购物车 帮助

源码网商城

.htaccess绑定域名到子目录的方法

  • 时间:2021-04-04 17:59 编辑: 来源: 阅读:
  • 扫一扫,手机访问
摘要:.htaccess绑定域名到子目录的方法
RewriteEngine on     # 把 yourdomain.com 改为你要绑定的域名.     RewriteCond %{HTTP_HOST} ^(www.)?prcer.com$         # 把 subfolder 改为要绑定的目录.     RewriteCond %{REQUEST_URI} !^/subfolder/     # 不要改以下两行.     RewriteCond %{REQUEST_FILENAME} !-f     RewriteCond %{REQUEST_FILENAME} !-d         # 把 subfolder 改为要绑定的目录.     RewriteRule ^(.*)$ /subfolder/$1     # 把 yourdomain.com 改为你要绑定的域名     # 把 subfolder 改为要绑定的目录.     # subfolder/ 后面是首页文件index.php, index.html......     RewriteCond %{HTTP_HOST} ^(www.)?prcer.com$     RewriteRule ^(/)?$ subfolder/index.php [L]  
  • 全部评论(0)
联系客服
客服电话:
400-000-3129
微信版

扫一扫进微信版
返回顶部