Skip to content

Commit ee6c9da

Browse files
author
Colin Yang
committed
Fixed htaccess
1 parent d49927a commit ee6c9da

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.htaccess

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
<IfModule mod_rewrite.c>
2+
Options +FollowSymlinks
23
RewriteEngine On
34
RewriteBase /
4-
RewriteRule ^index\.html$ /index.html [NC, L]
5-
RewriteRule ^static/(.*)$ /static/$1 [NC, L]
6-
RewriteRule ^((?!index\.php).*)$ /index.php?a=$1 [L]
5+
RewriteCond %{REQUEST_URI} !^/$
6+
RewriteCond %{REQUEST_URI} !^/index.html$
7+
RewriteCond %{REQUEST_URI} !^/index.php$
8+
RewriteCond %{REQUEST_URI} !^/static/(.*)$
9+
RewriteRule ^(.*)$ index.php?a=$1 [QSA,L]
710
</IfModule>

0 commit comments

Comments
 (0)