我在http://www.ssdpsjal.tk 我的代码实现了一个新的.htaccess文件是 -.htaccess的错误配置错误500
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ n/index.php/$1 [L]
RewriteRule ^$ /index [L]
Redirect /administrator /sadmin1
我用笨。您可以访问该网站查看错误。
而且我已经尽了本地服务器上此.htacccess并没有显示有任何这样的错误(我认为)
我的文档结构如下
--- ssdpsjal.tk //given by host. Non-writable
--n //the folder where website is stored
--web_based_editor //something my website uses
--.htaccess file //Htaccess file that I told about
--Some other stuff not relevent to the question
编辑
我已经多次更改了代码,并且在发生一些更改之后,我发现错误发生在RewriteRule ^(.*)$ n/index.php/$1 [L]
注意
的index
在RewriteRule ^$ /index [L]
没有的index.php它实际上是我笨控制器的功能(方法)
没有的.htaccess实际的URL是http://www.ssdpsjal.tk/n/index.php/s/index
注意index
上最后一句话,就是那一个!
你的'error.log'说什么? – MrDarkLynx
我看不到主机服务提供商不允许我执行的错误日志。 (我是一个免费的用户:() – Webmaster
'RewriteRule ^(。*)$ n/index.php/$ 1 [L]'为什么这个n /?你只是想绕过显示'index.php'? –