Fattylewis.com
Buy VPN

Wordpress mod_rewrite and server-status

30 Jan 2015

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

# 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

Tweet me @fatty_lewis if you like this post.

Tweet
comments powered by Disqus