|
| |||||||
![]() | Welcome to iWEBTOOL Talk, where you talk about
webmaster-related stuff.
1 Register
2 Browse the board
3 Discuss whatever may interest you! | |||||||||||||
![]() |
| | Thread Tools | Search this Thread | Display Modes |
| | #1 |
| Member Join Date: May 2006 Location: 3rd rock
Posts: 183
![]() | 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 |
| |
|
| |||||||
| | #2 |
| iWEBTOOL Moderator Contributor Join Date: Aug 2006 Location: Hungary
Posts: 1,855
![]() ![]() ![]() ![]() ![]() | 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 |
| |
| | #3 |
| Member Join Date: May 2006 Location: 3rd rock
Posts: 183
![]() | 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 |
| |
| | #4 |
| iWEBTOOL Moderator Contributor Join Date: Aug 2006 Location: Hungary
Posts: 1,855
![]() ![]() ![]() ![]() ![]() | 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 |
| |
| | #5 |
| Contributor Join Date: Jun 2006 Location: Denver
Posts: 4,459
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | You can find the full text here: http://www.webconfs.com/how-to-redirect-a-webpage.php |
| |
| | #6 | |
| iWEBTOOL Moderator Contributor Join Date: Aug 2006 Location: Hungary
Posts: 1,855
![]() ![]() ![]() ![]() ![]() | Quote:
__________________ █ Time may come when you will need an excellent eCommerce shopping cart software █ free seo related web directory mérlegek Free shopping cart | |
| |
| | #7 |
| Senior Member | thank you very much . it was very helpfull |
| |
(Threads which have no activity for more than 30 days are automatically closed.) |
| Quick Reply | ||
|
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |