Redirect HTTP to HTTPS with IIS 10

To redirect a domain to HTTPS, Click on the website in IIS, you will see If you don’t see the “URL Rewrite” button, you need to install “URL Rewrite” extension https://www.iis.net/downloads/microsoft/url-rewrite Click on “URL Rewrite” button. On the next screen click on “Add Rule(s)” link on the right side menu. Select “Blank Rule”, then click … Read more

How to redirect a domain with html extension in Nginx

A WordPress website needs to migrate to a different domain, on a new domain site use static HTML pages. On the source site, WordPress is configured to use URL like https://domain1/page-name/, on the new server, the same page available on URL https://domain2/page-name.html Source = https://domain1/page-name/ Destinatation = https://domain2/page-name.html To do the redirection, edit Nginx configuration … Read more

Fix Canonical URL using .htaccess

When you host a web site, many web hosting providers allow your web site access using multiple urls like yourdomain.com, www.yourdomain.com. If you have a dedicated IP address, your web site become available on the IP address also. It is bad for SEO to have a site available in multiple URLs. If search engine index … Read more

Redirect a folder to another

To redirect a folder to another using .htaccess, create RedirectMatch 301 ^/OLD_FOLDER/(.*)$ /NEW_FOLDER/$1 Or RewriteEngine On RewriteRule ^OLD_FOLDER/(.*)$ /NEW_FOLDER/$1 [R=301,NC,L] Or Redirect 301 /OLD_FOLDER /NEW_FOLDER if new folder is on another domain, you can use https://new-domain.com/OLD_FOLDER See Redirect

Redirect

Nginx IIS Redirect a site to HTTPS using .htaccess file Redirect a web site to SSL using Apache Virtual Host OR Redirect a Site to HTTPS using PHP Redirect www to non-www URL