Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache Laravel 4可以在没有修改的情况下运行吗?_Apache_.htaccess_Mod Rewrite_Laravel 4 - Fatal编程技术网

Apache Laravel 4可以在没有修改的情况下运行吗?

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...

我们的客户端没有在主机上启用mod_rewrite。有没有可能在没有它的情况下运行Laravel 4

默认的.htaccess文件如下所示:

<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。