How do I redirect my website/domain?

+3 votes
asked Jan 27, 2015 in Shared Hosting by John Corey
This elated effect forum brings together intercontinental leaders in the greensward of <a href="http://cialiswalmart.com/">walmart cialis</a> to advance the substantiation of, and developing solutions to http://cialiswalmart.com/ cialis over the counter, the preeminent systematic challenges overlay the aborting and treatment of category 2 diabetes.
Your domain from which the redirect is made should be bound to the hosting.

1.1. From www-domain to main domain
If the mod_rewrite module is enabled on your server, then in order to set up redirection from addresses starting with www to similar ones without www, you need to set the following lines in the .htaccess file in the root folder of your website:

RewriteEngine On
RewriteCond% {HTTP_HOST} ^ www. (. +) $ [NC]
RewriteRule ^ (. *) $ Http: //% 1 / $ 1 [R = 301, L]
1.2. From the main domain to the www-domain
RewriteEngine On
RewriteCond% {HTTP_HOST}! ^ (Www.) [NC]
RewriteRule ^ (. *) $ Http: //www.% {HTTP_HOST} / $ 1 [R = 301, L]

1 Answer

0 votes

... Firstly make sure you are doing the right redirect.

 

For example. permanent/temp redirect (301 and 302 redirects) follow this:

To set up a redirect:

1: Logon to the Cpanel. Click on the Redirects button on the home page.

2: Enter the address of the web page to redirect in the first field.

3: Enter the redirection address in the second field.

4: Choose one of the following options in the drop-down list:

4.a: Temporary - This tells Internet traffic agents (browsers, search engines, etc.) that this is only a temporary redirection, and that they should return to this initial location again in the future for the same page.

4.b: Permanent - This tells the Internet traffic agents to go to the redirection address in the future, as the old address will never be used again.

5: Click on the Add button.

 

or

 

a silent redirect through the index file follow these steps:

Please make sure that the following code is inserted between the head and body tags:

<meta http-equiv="refresh" content="0; url=http://example.com/" />

 

 

 

answered Jan 27, 2015 by Matthew Murdoch (61,160 points)
...