Return to iWEBTOOL

Go Back   iWEBTOOL Talk > Search Engine > Search Engine Optimization (SEO)
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
 
Welcome to iWEBTOOL Talk, where you talk about webmaster-related stuff.
 
Discuss topics which interest you.
With over thousands of threads (topics), we're sure you'll find something that'll interest you.
Ask for help whenever you need it.
We have thousands of members who are available to help you if you need it.
It's absolutely FREE!

 1  Register           2  Browse the board           3  Discuss whatever may interest you!
 


Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 01-02-2007, 06:21 PM   #1
wmghori
Member
 
wmghori's Avatar
 
Join Date: May 2006
Location: 3rd rock
Posts: 183
wmghori will become famous soon enough
Default 301 Redirect

301 Redirect

301 redirect is the most efficient and Search Engine Friendly method for webpage redirection. It's not that hard to implement and it should preserve your search engine rankings for that particular page. If you have to change file names or move pages around, it's the safest option. The code "301" is interpreted as "moved permanently".

You can Test your redirection with Search Engine Friendly Redirect Checker

Below are a Couple of methods to implement URL Redirection

IIS Redirect
In internet services manager, right click on the file or folder you wish to redirect
Select the radio titled "a redirection to a URL".
Enter the redirection page
Check "The exact url entered above" and the "A permanent redirection for this resource"
Click on 'Apply'
Redirect in ColdFusion
<.cfheader statuscode="301" statustext="Moved permanently">
<.cfheader name="Location" value="http://www.new-url.com">

Redirect in PHP
<?
Header( "HTTP/1.1 301 Moved Permanently" );
Header( "Location: http://www.new-url.com" );
?>

Redirect in ASP
<%@ Language=VBScript %>
<%
Response.Status="301 Moved Permanently" Response.AddHeader "Location", " http://www.new-url.com"
>

Redirect in ASP .NET
<script runat="server">
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = "301 Moved Permanently";
Response.AddHeader("Location","http://www.new-url.com");
}
</script>

Redirect Old domain to New domain (htaccess redirect)

Create a .htaccess file with the below code, it will ensure that all your directories and pages of your old domain will get correctly redirected to your new domain.
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) http://www.newdomain.com/$1 [R=301,L]

Please REPLACE www.newdomain.com in the above code with your actual domain name.

In addition to the redirect I would suggest that you contact every backlinking site to modify their backlink to point to your new website.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.

Redirect to www (htaccess redirect)

Create a .htaccess file with the below code, it will ensure that all requests coming in to domain.com will get redirected to www.domain.com
The .htaccess file needs to be placed in the root directory of your old website (i.e the same directory where your index file is placed)

Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]

Please REPLACE domain.com and www.newdomain.com with your actual domain name.

Note* This .htaccess method of redirection works ONLY on Linux servers having the Apache Mod-Rewrite moduled enabled.
__________________
affordable web hosting or you can try ecommerce web hosting

Domains for sale findjobsonline.net PM if interested
wmghori is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
SEO Checklist
Get yourself better ranking with
our "Do-it-Yourself" SEO Checklist.
Click Here
Old 01-03-2007, 05:34 PM   #2
Bagi Zoltán
iWEBTOOL Moderator
 Contributor 
 
Bagi Zoltán's Avatar
 
Join Date: Aug 2006
Location: Hungary
Posts: 1,855
Bagi Zoltán is a glorious beacon of lightBagi Zoltán is a glorious beacon of lightBagi Zoltán is a glorious beacon of lightBagi Zoltán is a glorious beacon of lightBagi Zoltán is a glorious beacon of light
Default Re: 301 Redirect

It is a really usefull text. I am thinking about translate it into hungarian, and display it on my site. Could you tell me where this resource originated from? Was it written by you, if not please tell me the url, because i would like to ask permission to translate it.
__________________
Time may come when you will need an excellent eCommerce shopping cart software
free seo related web directory mérlegek Free shopping cart
Bagi Zoltán is offline  
Old 01-04-2007, 02:40 PM   #3
wmghori
Member
 
wmghori's Avatar
 
Join Date: May 2006
Location: 3rd rock
Posts: 183
wmghori will become famous soon enough
Default Re: 301 Redirect

Its not written by me. Couple of guys asked about the 301 redirect in another thread so I posted this here. I think i did a search on google for 301 redirect and found this on first or second website.
__________________
affordable web hosting or you can try ecommerce web hosting

Domains for sale findjobsonline.net PM if interested
wmghori is offline  
Old 01-04-2007, 02:48 PM   #4
Bagi Zoltán
iWEBTOOL Moderator
 Contributor 
 
Bagi Zoltán's Avatar
 
Join Date: Aug 2006
Location: Hungary
Posts: 1,855
Bagi Zoltán is a glorious beacon of lightBagi Zoltán is a glorious beacon of lightBagi Zoltán is a glorious beacon of lightBagi Zoltán is a glorious beacon of lightBagi Zoltán is a glorious beacon of light
Default Re: 301 Redirect

Thank You, i will search the source
__________________
Time may come when you will need an excellent eCommerce shopping cart software
free seo related web directory mérlegek Free shopping cart
Bagi Zoltán is offline  
Old 01-04-2007, 05:17 PM   #5
jumpenjuhosaphat
 Contributor 
 
jumpenjuhosaphat's Avatar
 
Join Date: Jun 2006
Location: Denver
Posts: 4,459
jumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud ofjumpenjuhosaphat has much to be proud of
Default Re: 301 Redirect

You can find the full text here: http://www.webconfs.com/how-to-redirect-a-webpage.php
__________________
Storage Sheds
Lost Forum
jumpenjuhosaphat is offline  
Old 01-04-2007, 06:32 PM   #6
Bagi Zoltán
iWEBTOOL Moderator
 Contributor 
 
Bagi Zoltán's Avatar
 
Join Date: Aug 2006
Location: Hungary
Posts: 1,855
Bagi Zoltán is a glorious beacon of lightBagi Zoltán is a glorious beacon of lightBagi Zoltán is a glorious beacon of lightBagi Zoltán is a glorious beacon of lightBagi Zoltán is a glorious beacon of light
Default Re: 301 Redirect

Quote:
Originally Posted by jumpenjuhosaphat View Post
Thank You very much, thought i think they won't give permission for the translation. No problem, now i have a lot of duties.
__________________
Time may come when you will need an excellent eCommerce shopping cart software
free seo related web directory mérlegek Free shopping cart
Bagi Zoltán is offline  
Old 02-03-2007, 11:43 PM   #7
trichnosis
Senior Member
 
trichnosis's Avatar
 
Join Date: Jan 2007
Posts: 452
trichnosis will become famous soon enough
Send a message via MSN to trichnosis
Default Re: 301 Redirect

thank you very much . it was very helpfull
__________________
Türkçe Bilgi |
Hobiler | Satranç | 2
trichnosis is offline  
 
This is an Ad Revenue Sharing forum Place your advert here
Webmaster Tools Webmaster Tools Click Here
Closed Thread

(Threads which have no activity for more than 30 days are automatically closed.)



Quick Reply
Message:

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Anybody know's how to redirect YouTube Video to another URL? look4edmund Web Development 0 11-05-2006 08:59 PM
Direct Links, Redirect links and deep linking??? Mar Directories 1 10-30-2006 11:43 PM


All times are GMT. The time now is 06:00 AM.


Powered by vBulletin v3.6.7 © 2008, Jelsoft Enterprises Ltd. SEO by vBSEO © 2006, Crawlability, Inc.