WordPress and /server-status

WordPress has a nice feature called “Permalink“. This can improve the visibility or efficiency of your links (http://blog/monthly/post/13 is much nicer then http://blog?p=13).

To achieve this, WordPress generates a .htaccess file to upload in your blog root directory. It processes all HTTP requests via the mod_rewrite module. Problem: all URLs will be processed, even the virtual one such /server-status!

To avoid processing from specific URLs, just add the following line in the generated .htaccess:

RewriteCond %{REQUEST_URI} !=/server-status

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.