【发布时间】:2014-03-11 04:41:42
【问题描述】:
自从过去几个小时以来,我一直在努力让我的友好网址发挥作用。 我有 apache 2.4 和 php 设置。该应用程序是使用 laravel 4 构建的
所以虽然这个http://machinename:90/helpsystem/index.php/categories 有效,但以下不有效http://machinename:90/helpsystem/categories
我在 apache 的 httpd.conf 文件中启用了 mod_rewrite 模块 此外,我已将此添加到 httpd.conf 的别名模块部分
ScriptAlias /helpsystem "c:/Apache24/htdocs/helpsystem/public"
public 是 laravel 应用的公用文件夹
我的目录部分看起来像这样
<Directory "c:/Apache24/htdocs/helpsystem/public">
Options Indexes Includes FollowSymLinks MultiViews
AllowOverride AuthConfig FileInfo
Order allow,deny
Allow from all
</Directory>
.htaccess 文件看起来像这样
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
你能告诉我我做错了什么吗?
谢谢
【问题讨论】: