I have an Apache server based Wordpress site that rewrites URLs to be "pretty".
When I include a query parameter in the url the site breaks.
So:
http://mysite.com
works fine but:
http://mysite.com/?anything
Does not... loading the page contents but failing to load some plugins that I use on the home page.
If you can explain why this happens I would love to hear it. Failing that I would just like to strip off the query parameters entirely so that a request to:
http://mysite.com/?anything
would behave just like the request to:
http://mysite.com
Either through redirection or through simply removing the query string.
Here is my current .htaccess:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Handle redirection from https to http
RewriteCond %{HTTPS} =on
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1 [L,R=301]
# End https to http redirection
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{QUERY_STRING} ^index.php$
RewriteRule . /index.php [L]
</IfModule>
# END WordPress