【发布时间】:2016-07-14 16:32:03
【问题描述】:
我收到一个名为“您的应用程序文件夹路径似乎设置不正确。请打开以下文件并更正:index.php”的错误。我在主域的文件夹中使用该站点。如果需要,我的 .htaccess 文件如下所示。
<IfModule mod_rewrite.c>
############################################
## enable rewrites
# For security reasons, Option followsymlinks cannot be overridden.
# Options +FollowSymLinks
Options +SymLinksIfOwnerMatch
RewriteEngine on
############################################
## you can put here your magento root folder
## path relative to web root
############################################
## workaround for HTTP authorization
## in CGI environment
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
############################################
## always send 404 on missing files in these folders
RewriteCond %{REQUEST_URI} !^/(media|skin|js)/
############################################
## never rewrite for existing files, directories and links
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
############################################
## rewrite everything else to index.php
RewriteRule .* index.php [L]
</IfModule>
<IfModule mod_security.c>
# Turn off mod_security filtering. SMF is a big boy, it does not need its hands held.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
【问题讨论】:
-
你在使用 xampp 吗?沼泽?等
-
当您说
I use the site within a folder in main domain时,您的意思是像一个子域吗? -
是的,它就像子域。但它实际上不是子域。这是一个普通文件夹。
标签: php .htaccess codeigniter