Knowledge Base Archives: Redirect rules

Redirect Loops Redirect rules Warnings & Errormessages

htaccess redirect to https may cause redirect to 401.shtml when using password protection

When using the .htaccess for password protection in combination with the .htaccess 301 redirect to https in Really Simple SSL, a redirect to https://domain.com/401.shtml might occur. A simple solution which has been reported to work is to add ErrorDocument 401 default To the top of your .htaccess, so the end result looks like this (the …

Excluding/including SSL on specific pages Redirect rules SSL certificate

AutoSSL Let’s Encrypt plugin cannot verify domain because of .htaccess 301 redirect

I recently came across an issue where the AutoSSL let’s encrypt plugin can’t verify the domain. Strange though it may seem, this tool needs to access the website over http to renew the SSL certificate. A solution can be to disable the .htaccess redirect, renew, then enable again, but this is not a very elegant …

Redirect rules

Redirect to https not working

After you enable Really Simple SSL, by default a PHP redirect is activated, which is called wp 301 redirect in the plugin. If you notice your site can still be reached over https, this redirect might not work because of other plugins, like caching plugins for example. If you’re using Apache, the best redirect method …

Redirect Loops Redirect rules

Remove .htaccess redirect on site lockout

The .htaccess is the fastest redirect, so why not enable it by default? When you enable the setting “htaccess redirect” in settings/ssl/settings, Really Simple SSL detects the most suitable redirect, then opens a testpage to verify if this option won’t result in redirect loops. Even so, the detected redirect can cause a loop: there are …

404 pages Redirect rules

Redirection to subfolder domains redirects to https://www.domain.com/domain.com

If you are running multiple single site WordPress websites in one hosting account, where you redirect to the correct domain using htaccess code like the example this: RewriteEngine on RewriteCond %{REQUEST_URI} !domain/ RewriteCond %{HTTP_HOST} ^domain.com$ [NC,OR] RewriteCond %{HTTP_HOST} ^www.domain.com$ RewriteRule (.*) /domain/$1 [L] the default Really Simple SSL redirect in combination with this code might …