transferring site to new domain

Author Topic: transferring site to new domain  (Read 1669 times)

Offline WalalayoTopic starter

  • Trade Count: (0)
  • Full Member
  • ***
  • Thank You 3
  • Posts: 180
  • Karma: 2
    • JavaScript Editor
transferring site to new domain
« on: 11-06-2011, 20:46:03 »
the time has come that Ive been regretting for a long time. I need to move my entire site to a new domain. All the directories and file structure will remain the same. I dont want to lose my rankings in Google. What is the best way to do this? Will a 301 permanent redirect work flawlessly to preserve the google rankings?


Offline Piyush

  • Trade Count: (0)
  • Semi-Newbie
  • *
  • Thank You 0
  • Posts: 19
  • Karma: 1
Re: transferring site to new domain
« Reply #1 on: 11-09-2011, 04:12:21 »
HI...

.htaccess is a file that tells the server how to handle certain things like security, error messages and, most importantly for us, redirection.  The mod_rewrite module lets you “rewrite” URLs.  It’s hosted on your web server so you won’t need to download or install anything.  This is the preferred way to redirect your site or pages to your new domain name without losing valuable ranking or back links.

To start, make sure your new domain is properly directed to your hosting account.  Upload your files from your old domain to the new one exactly as they appeared on the old domain.  Now it’s time to make your .htaccess file.  If you already have one on your new server, name it .htaccessBACKUP.  Don’t delete it in case you need to restore the old settings for any reason.

Open Notepad by going to Start > Accessories > Notepad or use another simple text editor of your choice.  Don’t use Microsoft Word or another word processing program though – they will automatically add an extension to the filename like .doc – which is what we don’t want.

In this new file, copy and paste the following:

RewriteEngine On

RewriteRule ^(.*)$ http://www.yournewdomain.com/$1 [R=301,L]

Replace “yournewdomain.com” with your actual new domain name. Then save the file as:

.htaccess

Ensure it doesn’t have an extension (like .txt) – you can do this by choosing “All Files” in the drop-down menu.

Once you save the file, upload it to your root directory for your old domain name.  Try it out by typing in your old domain in your browser.  You should immediately be directed to the new site.  The old domain name will still show in the address bar.  To make sure you’re browsing the new site and not the old one, just right-click on an image and choose Properties.  The full image URL should be displayed with the new site URL.


_________________
virtual offices limerick [nofollow]
« Last Edit: 11-09-2011, 04:15:51 by Piyush »

Offline takeshiro

  • Trade Count: (0)
  • Sr. Member
  • ****
  • Thank You 13
  • Posts: 357
  • Karma: 2
  • Gender: Male
    • JavaScript Editor
Re: transferring site to new domain
« Reply #2 on: 11-09-2011, 06:10:14 »
HI...

.htaccess is a file that tells the server how to handle certain things like security, error messages and, most importantly for us, redirection.  The mod_rewrite module lets you “rewrite” URLs.  It’s hosted on your web server so you won’t need to download or install anything.  This is the preferred way to redirect your site or pages to your new domain name without losing valuable ranking or back links.

To start, make sure your new domain is properly directed to your hosting account.  Upload your files from your old domain to the new one exactly as they appeared on the old domain.  Now it’s time to make your .htaccess file.  If you already have one on your new server, name it .htaccessBACKUP.  Don’t delete it in case you need to restore the old settings for any reason.

Open Notepad by going to Start > Accessories > Notepad or use another simple text editor of your choice.  Don’t use Microsoft Word or another word processing program though – they will automatically add an extension to the filename like .doc – which is what we don’t want.

In this new file, copy and paste the following:

RewriteEngine On

RewriteRule ^(.*)$ http://www.yournewdomain.com/$1 [R=301,L]

Replace “yournewdomain.com” with your actual new domain name. Then save the file as:

.htaccess

Ensure it doesn’t have an extension (like .txt) – you can do this by choosing “All Files” in the drop-down menu.

Once you save the file, upload it to your root directory for your old domain name.  Try it out by typing in your old domain in your browser.  You should immediately be directed to the new site.  The old domain name will still show in the address bar.  To make sure you’re browsing the new site and not the old one, just right-click on an image and choose Properties.  The full image URL should be displayed with the new site URL.


_________________
virtual offices limerick



this, pretty much, says it all.

 

Related Topics

  Subject / Started by Replies Last post
0 Replies
1339 Views
Last post 09-20-2013, 03:24:42
by aleksis
2 Replies
2341 Views
Last post 02-12-2016, 01:25:34
by Shikha Singh
0 Replies
479 Views
Last post 09-20-2016, 22:21:20
by Nathan Wills
2 Replies
734 Views
Last post 05-17-2017, 01:16:49
by deekumar0203
1 Replies
925 Views
Last post 04-23-2017, 22:30:47
by wellliving