当前位置:网站首页>Setting pseudo static under fastadmin Apache

Setting pseudo static under fastadmin Apache

2022-06-26 05:10:00 You are sexy!

FastAdmin God forever , It's really a fast backstage .

1. After the project is installed , open apache Pseudo static of

 

2. Add rules

3. Code segment

<IfModule mod_rewrite.c>
Options +FollowSymlinks -Multiviews
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [QSA,PT,L]
</IfModule>

 

 

4. If you do not set pseudo static , You need to add... To the route index.php

http://test.fastadmin.com/index.php/index/user/login.html

 

After adding pseudo static , Route rewrite , Will hide index.php

 

http://test.fastadmin.com/index/user/login.html

 

原网站

版权声明
本文为[You are sexy!]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/177/202206260504426770.html