你好我使用下面的htaccess路由与htaccess以及laravel
<IfModule mod_rewrite.c>
Options +FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
对于做laravel路由。
当我浏览到例如 localdevurl /大众/用户我得到以下错误(404)
未找到
所请求的网址/用户/用户名/网站/ sitefolder /大众/在此服务器上找不到index.php/user。
但是,正如你看到它显示错误中的index.php。当我把index.php放入我的网址时,确实有效。我已经打开了我的apache配置中的所有内容。
有人能看到我在做什么错在这里?
我假设你从默认值改变了.htaccess。它与原始.htaccess工作吗?https://github.com/laravel/laravel/blob/master/public/.htaccess – hayhorse
没有与原来的它根本没有工作,我没有看到我的公共文件夹。 – Reshad