Home » Preferred URL and redirection testing tool

Preferred URL and redirection testing tool

Use this tool to find preferred URL and redirection of other version of URLs.

Note: Just simple clean URL like: example.com

Choose your preferred URL:
http://
http://www.
https://
https://www.

Setting Preferred Domain & Redirection

Why this is so important?

Its very important to have one preferred URL and other versions of URL should redirect to primary URL, and this is even more important for home page.

Some people uses canonical to set preferred domain and other versions of URL loads same content. This method is also fine but looks ugly. Setting up canonical is life saver in certain situations where its difficult to redirect and good example is Magento products.

If you will not set it right then it will create duplicate content and it will create major ranking issues.

Example code:

Lets say my preferred URL is: https://www.example.com then other versions of URLs must redirect to preferred URL.

It can be easily managed by adding following code in .htaccess file on an Apache server:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]
RewriteCond %{http_host} ^example.com [NC]
RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]

RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ https://www.example.com/$1 [R=301,L]

Need Help?

If this is too hard or need help from an expert SEO consultant then talk to us today!