【发布时间】:2016-08-21 16:23:30
【问题描述】:
临时站点是: http://173.254.74.167/eccaorgn/home
这不起作用。但是当我添加http://173.254.74.167/eccaorgn/index.php/home 时,它起作用了。 所以我想删除这个 index.php。 我的 htaccess 代码是:
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ http://173.254.74.167/~eccaorgn/$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
AddHandler application/x-httpd-php56 .php .php5 .php4 .php3
</IfModule>
所以告诉我,在这种情况下该怎么做,我尽我所能..但没有得到任何适当的解决方案。
【问题讨论】:
-
谢谢大家,我得到了答案..
标签: php .htaccess laravel routes