Im在我的OSX安装程序中遇到了Laravel的htaccess文件问题。 我一直在WAMP上运行应用程序,但当我转移到我的Mac我开始得到问题。Laravel在OSX上的htaccess问题雪豹
htaccess的是默认
# Apache configuration file
# http://httpd.apache.org/docs/2.2/mod/quickreference.html
# Note: ".htaccess" files are an overhead for each request. This logic should
# be placed in your Apache config whenever possible.
# http://httpd.apache.org/docs/2.2/howto/htaccess.html
# Turning on the rewrite engine is necessary for the following rules and
# features. "+FollowSymLinks" must be enabled for this to work symbolically.
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
</IfModule>
# For all files not found in the file system, reroute the request to the
# "index.php" front controller, keeping the query string intact
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
我使用V-主机有一个XXXXXXX.laravel URL。
我将URL添加到我的配置文件并将索引留空。
每次我浏览网页XXXXXXX.laravel我得到的网页,但是当我浏览到XXXXXXX.laravel /测试,我收到了404
,如果我尝试XXXXXXX.laravel/index.php文件/测试它的工作原理好。
如果我添加index.php到配置文件中的索引,它只是将index.php附加到我的链接。
任何想法?? 感谢 亚当,
这是Laravel 3还是Laravel 4? – Aran