Redirection to Port 443/http

Redirection of our website to Port 443/https

In many cases, redirection to port 443 or HTTPS protocol is not performed correctly by our website, content manager or administration panel of our website.

An appropriate solution to solve this type of problem is to use an .htaccess file with which we can achieve an appropriate redirection to the https protocol or port 443.

We simply create a .htaccess file with the following instruction replacing mydomain.com with your web domain and upload it to the root directory of our website.

RewriteEngine on
Options +FollowSymlinks

#Rewrite the URL to always use https except
RewriteCond %{REQUEST_URI} !^/dl.php [NC]
RewriteCond %{REQUEST_URI} ^/ [NC]
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://www.mydominio.com/$1 [R=301,L]

If you have any questions, please feel free to contact Picaraza Domains support team 24/7/365.

Was this answer helpful?

Related Articles

Files .htaccess

What we can use a .htaccess file for The .htaccess (hypertext access) file is a supported...

Restrict access with .htaccess

Redirect or restrict access to a directory with .htaccess A very important action is the...

Redirection with www

Web domain redirection with (www) In the SEO optimization of our website, it is very important...

Enable WordPress write permissions

WordPress rewrite permissions We can enable rewriting permissions in WordPress by creating a...