Apache Laravel 4可以在没有修改的情况下运行吗?
我们的客户端没有在主机上启用mod_rewrite。有没有可能在没有它的情况下运行Laravel 4 默认的.htaccess文件如下所示:Apache Laravel 4可以在没有修改的情况下运行吗?,apache,.htaccess,mod-rewrite,laravel-4,Apache,.htaccess,Mod Rewrite,Laravel 4,我们的客户端没有在主机上启用mod_rewrite。有没有可能在没有它的情况下运行Laravel 4 默认的.htaccess文件如下所示: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On # Redirect Trailing Slashes...
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
如果是,怎么做?是的,但url将是domain.com/index.php/route/to/here,而不是domain.com/route/to/here,因为它必须通过索引进行路由。php@Noik:domain.com/index.php/和任何子路由返回一个带有500 HTTP错误代码的空白页,其中包含内部服务器错误。主机上的Apache设置不知怎么搞砸了吗?@也许吧,你应该检查Apache错误日志或laravel日志,看看发生了什么。可能是Laravel/PHP抛出错误或apache。