购物车中还没有商品,赶紧选购吧!

思途CMS Apache伪静态配置

发布日期:2023-11-17 阅读:817

#以下是全部代码,请全部复制粘贴,修改网站根目录的.htaccess文件,绿色部分自行替换成自己网站域名!!假如我的域名是www.v6.com

 

# Turn on URL rewriting

RewriteEngine On

 

# Installation directory

RewriteBase /

#substation start

RewriteCond %{HTTP_HOST} ^(.*)?.v6.com$

RewriteCond %{HTTP_HOST} !^(www).v6.com$

RewriteRule ^(lines|hotels|cars|spots|raiders|photos)(/)?$ $1/%1 [L]

#substation end

 

# m域名部分,有m域名才需要,没有就请删除这段

#mobile start

RewriteCond %{HTTP_HOST} ^m.v6.com$

RewriteCond %{REQUEST_URI} !^/uploads/

 RewriteRule (.*) /phone/$1 [L]

#mobile end

# m域名部分,有m域名才需要,没有就请删除这段!

 

 

RewriteRule ^(uploads/.*?_(\d+)x(\d+)\.(jpg|gif|png|jpeg))$ /images/index?file=$1&w=$2&h=$3&type=$4 [L,NC,R]

 

# Protect hidden files from being viewed

<Files .*>

Order Deny,Allow

Deny From All

</Files>

 

 

# Protect application and system files from being viewed

RewriteRule ^(?:v5|modules|system)\b.* index.php/$0 [L]

 

# Allow any files or directories that exist to be displayed directly

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_URI} !^/(uploads|public|newtravel|phone|payment|plugins|h5)(/)?

#RewriteCond %{REQUEST_FILENAME} !-d

# Rewrite all other URLs to index.php/URL

RewriteRule (.*) index.php [QSA,L,E=PATH_INFO:/$1]


以上内容是否对您有帮助? 您的反馈信息提交成功,谢谢您的反馈!

会员评论

在线客服
微信咨询
微信咨询
现在咨询,获取演示账号
企业logo小米
立即扫码加我微信
电话咨询
咨询电话
028-61558715
预约演示