Opencart的.htaccess问题 [英] Opencart .htaccess issue

查看:634
本文介绍了Opencart的.htaccess问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有类似的问题,我的网址是像name.domain.com/subdoamin/store/index.php?...

I'm having similar problem My url is like name.domain.com/subdoamin/store/index.php?...

和我的htaccess的文件是:

and my htaccess file is :

Options +FollowSymlinks

# Prevent Directoy listing 
Options -Indexes

# Prevent Direct Access to files
<FilesMatch "\.tpl">
 Order deny,allow
 Deny from all
</FilesMatch>

#<FilesMatch "\.ini">
 #Order deny,allow
 #Deny from all
#</files>

# SEO URL Settings
RewriteEngine On
RewriteBase /store/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#RewriteRule ^(.*)\?*$ index.php?_route_=$1 [L,QSA]
RewriteRule ^(.*) index.php [L,QSA]

但它是给人一种 404未发现错误

推荐答案

如果您的存储文件夹里面的子域名的文件夹,您的的RewriteBase /子域/存储/

If your store folder is inside the subdomain folder your RewriteBase should be /subdomain/store/

这篇关于Opencart的.htaccess问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆