<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.html$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} example [NC]
RewriteRule . /index.html [L]
#hide .php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
</IfModule>
# 我的 vue-router 里面配置的都是 example_xx 形式
# 昨天的搞不定 https://v2ex.com/t/736397 直接把 iis 换成 apache 了
# 再伸手
# 看起来基本没问题了,用·CURL·测试了多次
但是我现在的配置文件里面 page.php -> page 失效了
Google 了好多次,难以理解这个配置文件到底怎么写,
在线测试工具也搞的头疼,伸手。