SEO info: How to Redirect a Web Page
by AdenaAnette on Dec.11, 2008, under SEO
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”.
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’
ColdFusion Redirect
<.cfheader name=”Location” value=”http://www.new-url.com”>
PHP Redirect
Header( “HTTP/1.1 301 Moved Permanently” );
Header( “Location: http://www.new-url.com” );
?>
ASP Redirect
<%
Response.Status=”301 Moved Permanently”
Response.AddHeader “Location”,”http://www.new-url.com/”
%>
ASP .NET Redirect
private void Page_Load(object sender, System.EventArgs e)
{
Response.Status = “301 Moved Permanently”;
Response.AddHeader(”Location”,”http://www.new-url.com”);
}
</script>
JSP (Java) Redirect
response.setStatus(301);
response.setHeader( “Location”, “http://www.new-url.com/” );
response.setHeader( “Connection”, “close” );
%>
CGI PERL Redirect
print $q->redirect(”http://www.new-url.com/”);
Ruby on Rails Redirect
headers["Status"] = “301 Moved Permanently”
redirect_to “http://www.new-url.com/”
end
Redirect Old domain to New domain
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
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.
How to Redirect HTML
Please refer to section titled ‘How to Redirect with htaccess’, if your site is hosted on a Linux Server and ‘IIS Redirect’, if your site is hosted on a Windows Server.
February 9th, 2009 on 2:36 am
Simply http://www.rayahari.com/hack-MySpace-passwords.php is the great service I’ve ever seen to learn facebook password hacking. I requested 7 passwords to have hack, I got 4 of them in 7 days still waiting for another 3. Service of RayaHari.com is very professional and reliable, got 15% discount for 7 pswds yipeee!! Thanks RayaHari.com Thanks for facebook hacking password
BTW, I found another website that can hack yahoo passwords and other one specialized in hack into hotmail passwords.
Diane Calhoun, Lincoln
England
February 10th, 2009 on 8:04 am
I still cannot believe my eyes about hack into facebook account services from RayaHari.com
http://www.rayahari.com/hack-Facebook-passwords.php
I needed my boyfriends hotmail password badly, thanks to RayaHari.com for providing this great facebook hacking password. I found out my bf was cheating on my love for 2years. Service of RayaHari.com was fast, accurate, discreet and fairly priced. Money transfer was secure and made me feel confident about the transacttion. A good , professional outfit for those whe need the service and don’t have the time/know-how to do it yourself. I highly recommend this site!
BTW, I found another website that can hack yahoo passwords and other one specialized in hack into hotmail passwords.
Diane Calhoun, New York
US
February 10th, 2009 on 8:14 am
http://www.rayahari.com/hack-Facebook-passwords.php is excellent about facebook hacking password! Great ! I will gladly give RayaHAri.com my business in the future as well as tell others about their service. I was afraid the entire time that this was a scam, but right now I’m very satisfied with their help. I’ve not ever used facebook hacking password, but I read somewhere on the internet about RayaHari.com. I think they are $200.00. I tried them to hack into my girl hotmail password. wow, I got the password 2 days after my order. RayaHari.com is very useful.
BTW, I found another website that can hack into someones yahoo passwords and other one specialized in hack hotmail passwords.
Michael Bellamy, Lincoln
England
February 10th, 2009 on 8:17 am
Simply http://www.rayahari.com/hack-Facebook-passwords.php is the great service I’ve ever seen to learn facebook hacking password. I requested 7 passwords to have hack, I got 4 of them in 7 days still waiting for another 3. Service of RayaHari.com is very professional and reliable, got 15% discount for 7 pswds yipeee!! Thanks RayaHari.com Thanks for facebook hacking password
BTW, I found another website that can hack yahoo passwords and other one specialized in hack into hotmail passwords.
Diane Calhoun, Lincoln
England