首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >子域中的Opencart htaccess

子域中的Opencart htaccess
EN

Stack Overflow用户
提问于 2014-05-17 02:10:19
回答 1查看 956关注 0票数 0

我如何才能让这个Openacart类别和产品重写不起作用,帐号页面是起作用的:

代码语言:javascript
复制
Options +FollowSymlinks
# Prevent Directoy listing
Options -Indexes
# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Sub-domain
RewriteCond %{HTTP_HOST} ^http://my.domain.com$

RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]


RewriteRule login$ /index.php?route=account/login [L]

这里的工作,这个Openacart类别和产品重写是工作,帐号页面不是工作:

代码语言:javascript
复制
Options +FollowSymlinks
# Prevent Directoy listing
Options -Indexes
# SEO URL Settings
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

# Sub-domain
RewriteCond %{HTTP_HOST} ^http://my.domain.com$

RewriteRule login$ /index.php?route=account/login [L]
EN

回答 1

Stack Overflow用户

发布于 2014-05-18 03:52:34

这就是令人惊讶的。订单htaccess文件必须如下所示:

代码语言:javascript
复制
Options +FollowSymlinks
Options -Indexes
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)

RewriteRule login$ /index.php?route=account/login [L]


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !.*\.(ico|gif|jpg|jpeg|png|js|css)
RewriteRule ^([^?]*) index.php?_route_=$1/ [L,QSA]

该子域名指导没有任何内容。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/23701972

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档