子域中的Opencart htaccess

时间:2014-05-16 18:10:19

标签: .htaccess subdomain opencart

我怎样才能让它发挥作用 这个Openacart类别和产品重写不起作用,帐户页面起作用:

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类别和产品重写是工作,帐户页面不起作用:

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]

1 个答案:

答案 0 :(得分:0)

这令人惊讶。订单htaccess文件必须是这样的:

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]

该子域名指导没有。