我正在使用creo的模块系统和laravel 4.启用mod_rewrite并且我有一个.htaccess我也使用XAMPP。奇怪的是,如果我使用MAMP然后它工作正常但是如果我使用XAMPP就是当我得到Object Not Found错误时。我想使用XAMPP,因为使用它创建一个虚拟主机要容易得多,然后是MAMP。
在我的网址中
但我需要它
这是我的.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>
答案 0 :(得分:0)
帮自己一个忙,不要使用MAMP或XAMPP。使用宅基地。 http://laravel.com/docs/4.2/homestead
为您提供一些指南:
https://laracasts.com/lessons/say-hello-to-laravel-homestead-two