Home WordPress mod_rewrite and server-status
Post
Cancel

WordPress mod_rewrite and server-status

I had an issue with getting server-status to display while using mod_rewrite to display wordpress posts by their name.

Here is the solution:

Edit you .htaccess to match the following

1
2
3
4
5
6
7
8
9
10
11
12
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^(server-info|server-status) - [L]
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

This post is licensed under CC BY 4.0 by the author.