【问题标题】:Object not found! in xampp找不到对象!在 xampp
【发布时间】:2015-03-18 16:07:11
【问题描述】:

我正在使用 creo 的模块系统和 laravel 4。mod_rewrite 已启用,我有一个 .htaccess 我也在使用 XAMPP。奇怪的是,如果我使用 MAMP,那么它可以正常工作,但如果我使用 XAMPP,那就是当我得到 Object Not Found 错误时。我想使用 XAMPP,因为使用它创建虚拟主机比使用 MAMP 更容易。

在我的网址中

http://localhost/test-modules/index.php/admin/content

但我需要它是

http://localhost/test-modules/admin/content

这是我的 .htaccess

Order allow,deny
Allow from all
<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]

# Disallow access to following directories
#RewriteRule ^vendor($|/|/.*|./*) – [L,R=404]
#RewriteRule ^app($|/|/*|/.*) – [L,R=404]
</IfModule>

【问题讨论】:

    标签: apache .htaccess mod-rewrite laravel-4


    【解决方案1】:

    帮自己一个忙,不要使用 MAMP 或 XAMP。使用宅基地。 http://laravel.com/docs/4.2/homestead

    给你一些指导:

    https://laracasts.com/lessons/say-hello-to-laravel-homestead-two

    【讨论】:

      猜你喜欢
      • 2017-09-29
      • 2012-07-11
      • 2013-09-05
      • 2020-03-20
      • 2014-08-11
      • 2016-01-07
      • 2013-11-25
      • 2016-08-07
      相关资源
      最近更新 更多