laravel和wamp路由问题

问题描述 投票:0回答:1

我使用其Web界面在Wamp中创建了虚拟主机,并通过我的主机文件将其链接,并且该网站仅在页面“ /”中运行但其他路线无效,则显示404

主机文件

127.0.0.1 localhost

127.0.0.1   quran.test
::1 quran.test
::1 localhost

我的htaccess

<IfModule headers_module>
<IfModule rewrite_module>

    # ^(.*) if .htaccess in a root; ^/(.*) otherwise
    RewriteEngine On
    RewriteCond %{QUERY_STRING} ^(.*)bytes=(.*)$
    RewriteRule ^(.*) - [L,E=range:%2]
    RequestHeader set Range "bytes=%{range}e" env=range
</IfModule>
</IfModule>

我的虚拟主机文件

<VirtualHost *:80>
    ServerName quran.test
    DocumentRoot "e:/wamp/www/quran/public"
    <Directory  "e:/wamp/www/quran/public/">
        Options +Indexes +Includes +FollowSymLinks +MultiViews
        AllowOverride All
        Require local
    </Directory>
</VirtualHost>

希望您能帮我,我尝试更改httpd和许多其他文件,但是没有用

更新:如果我做quran.test / index.php / myroute它正常工作

但是如果我愿意quran.test / myroute它不起作用,我认为它在apache conf中有作用

php laravel webserver wamp
1个回答
0
投票

发现之后就可以了

© www.soinside.com 2019 - 2024. All rights reserved.