transferring site to new domain

Started by Walalayo, 11-06-2011, 20:46:03

Previous topic - Next topic

WalalayoTopic starter

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?


Piyush

#1
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]
  •  


takeshiro

Quote from: Piyush 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



this, pretty much, says it all.

Yuga

Step 1: Pre-Planning. ...
Step 2: Create Backup Copies of Your Files and Databases. ...
Step 3: Transfer Files to Your New Domain Name. ...
Step 4: Add Redirection. ...
Step 5: Check for Broken Links. ...
Step 6: Update Your XML Sitemap and Trigger Reindexing.

Lishmalinyjames

Step 1: Pre-Planning.
Step 2: Create Backup Copies of Your Files and Databases.
Step 3: Transfer Files to Your New Domain Name.
Step 4: Add Redirection.
Step 5: Check for Broken Links.
Step 6: Update Your XML Sitemap and Trigger Reindexing.