Skip to content

Commit efcbf1c

Browse files
committed
[mukadi-wordpress] simplify .htaccess
1 parent 1e1ee6b commit efcbf1c

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed
Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,10 @@
1+
# BEGIN WordPress
12
<IfModule mod_rewrite.c>
23
RewriteEngine On
3-
4-
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::\2$
5-
RewriteRule ^(.*) - [E=BASE:%1]
6-
7-
RewriteCond %{ENV:REDIRECT_STATUS} ^$
8-
RewriteRule ^index\.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
9-
10-
RewriteCond %{REQUEST_FILENAME} -f [OR]
11-
RewriteCond %{REQUEST_FILENAME} -d
12-
RewriteRule .? - [L]
13-
14-
# Rewrite all other queries to the front controller.
15-
RewriteRule .? %{ENV:BASE}/index.php [L]
16-
</IfModule>
17-
18-
<IfModule !mod_rewrite.c>
19-
<IfModule mod_alias.c>
20-
RedirectMatch 302 ^/$ /index.php/
21-
</IfModule>
4+
RewriteBase /
5+
RewriteRule ^index\.php$ - [L]
6+
RewriteCond %{REQUEST_FILENAME} !-f
7+
RewriteCond %{REQUEST_FILENAME} !-d
8+
RewriteRule . /index.php [L]
229
</IfModule>
10+
# END WordPress

0 commit comments

Comments
 (0)