Home / Wordpress / How to Redirect WWW TO NON-WWW (Vice Versa) For WordPress

How to Redirect WWW TO NON-WWW (Vice Versa) For WordPress

Dear Users, Good news here We are Providing information on How to Redirect WWW TO NON-WWW (Vice Versa) For WordPress. So, Can you Get here WWW TO NON-WWW and NON-WWW TO WWW  .htaccess file? WWW TO NON-WWW, NON-WWW TO WWW

Why is a WWW TO NON-WWW or NON-WWW TO WWW Redirect Important?

Fail to do this one version Redirect can cause copy content issues. Making sure that only WWW TO NON-WWW (Vice Versa) of your domain utilized to get to your pages is important for Search Engine Optimization (SEO).

The website/Blog Without this redirection? A similar page will be available by means of both www.yourdomain.com/blog and yourdomain.com/blog. These Two URLs may appear to be identical, yet to a PC (internet searcher crawler), they are two totally isolate addresses.

This type of issue know as copy content, makes it harder for web search tools to crawl and index a site On Search Engine. So, My Suggestion is Keep One Way Redirection Get Good SEO benefits.

In order to pass this test, you must consider using a 301 re-write rule in your .htaccess file so that both addresses (http://mytrickworld.com and http://www.mytrickworld.com) resolve to the same URL.

If you want to redirect http://www.mytrickworld.com to http://mytrickworld.com,(WWW TO NON-WWW) you can use this:

RewriteCond %{HTTP_HOST} ^www\.mytrickworld\.com$
RewriteRule ^/?$ “http\:\/\/mytrickworld\.com\/” [R=301,L]

– If you want to redirect http://mytrickworld.com to http://www.mytrickworld.com, (NON-WWW TO WWW) you can use this:

RewriteCond %{HTTP_HOST} !^www.mytrickworld.com$ [NC] RewriteRule ^(.*)$ http://www.mytrickworld.com/$1 [L,R=301]

Still, If You Have Any Doubts Comment Below 

Leave a Reply

Your email address will not be published. Required fields are marked *