Google friendly domain redirect


/ Published in: HTML
Save to your folder(s)

You must use Google friendly domain redirect in these cases:
You changed a domain name for your web page and want the old one to redirect visitors to a new one.
You have many domains for your website (one primary and many alternative).
You want to strip the ‘www’ part from the domain name.

How to redirect?
For case #1 and #2 you must point (alias) all the domains to the same website. Ask your server administrator or hosting providers how to do that. Some times hosting providers call this – domain parking.
Select configuration for desired case below. Replace domain names with your real ones and paste the code to file named ‘.htaccess’. Upload the file it into the root folder of your web page.

URL: http://www.webtoolkit.info/google-friendly-domain-redirect-using-apache-rewrite.html

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.