Redirecting existing website to a domain

David56

Newbie
Joined
Sep 27, 2017
Messages
10
Reaction score
0
I have an existing website which has lasted for about six months which I would like to link to a domain for hosting. How do I do this? I would also appreciate if I can get a cheap and affordable domain.

Thanks
 
Do you want to redirect example1.come to example2.com or move example1.com's site/content to example2.com?

Which domain extension are you looking to buy?
 
Hey Buddy,

This can be done very simply by editing the .htaccess file on your server. Here are some examples:

Redirect /path/to/old/file/old.html http://www.example.com/new/file/new.html
or maybe this will help:
Redirect /index.html /new/
Redirect /index.html /default.html
Redirect /private/ http://www.example.com/private/
Redirect /img/logo.gif http://www.example.com/images/logo.gif

or maybe this example:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com [NC,OR]
RewriteCond %{HTTP_HOST} ^http://www.example.com [NC]
RewriteRule ^(.*)$ http://example.net/$1 [L,R=301,NC]

Good Luck!!
 
Also you can get free and very low cost .tk domains. Or if you prefer top level go to namecheap.com for the .com .net etc.


Peace!!
 
As per my understanding, you would like to add the redirection from your old site to new site. It can be done by simply adding the redirection from the control panel or from your domain registrar/hosting provider's end.

You can add the redirection code in the .htaccess file, this is also one option to add the redirection. Just make sure the code which you have added is correct.
 
Back
Top