Welcome to Domain Social, a domain forum where people sell domains and buy domains, talk about domain name registration and help others when buying and selling domains.
Want full access? Click here to register
What you get:
Join in on Discussions on domains
Buy domains in the market place
Sell domains in the market place
and its free! Register now!
|
 |
|
11-23-2006, 02:59 AM
|
#1 (permalink)
|
|
Administrator
Posts: 872
Join Date: Jun 2006
Number of Domains: hundreds
|
Redirect a page for google page rank?
Hi
I have a page, for instance domain.com/index.html
and I would like to redirect it to domain.com/directory/index.html
Right now I have an html "meta refresh" redirect, but I know that search engines such as google dont like these; they think that you are creating portals.
So what is the correct way to redirect?
Also, will the Page Rank of the page get transfered?
Thanks
Zach
__________________
Sig: Before I post on Domain Social, I read the rules!
|
|
|
|
11-24-2006, 01:34 AM
|
#2 (permalink)
|
|
Member
Posts: 72
Join Date: Sep 2006
Number of Domains:
|
I wonder *why* you want to add "directory" in there. If you redirect it in the setup of the server (if you have access to that - or to someone who has access), rather than redirecting, wouldn't that be better?
|
|
|
|
|
Remove these by Registering
|
|
|
11-24-2006, 01:20 PM
|
#3 (permalink)
|
|
Administrator
Posts: 872
Join Date: Jun 2006
Number of Domains: hundreds
|
Quote:
Originally Posted by penguinmama
I wonder *why* you want to add "directory" in there. If you redirect it in the setup of the server (if you have access to that - or to someone who has access), rather than redirecting, wouldn't that be better?
|
The directory is a script which is runinng on the server, and I do not have access to it.
__________________
Sig: Before I post on Domain Social, I read the rules!
|
|
|
|
12-06-2006, 07:47 AM
|
#4 (permalink)
|
|
Member
Posts: 72
Join Date: Sep 2006
Number of Domains:
|
Ah, bummer. How about frames? How does that affect the search engine thing? Then it would be accessed THROUGH the domain, still...
|
|
|
|
12-08-2006, 12:42 AM
|
#5 (permalink)
|
|
Member
Posts: 98
Join Date: Nov 2006
Number of Domains:
|
This has me completely confused. But I am looking forward to finding the answers. Hopefully, someone clears this up for us all.
|
|
|
|

12-08-2006, 01:14 AM
|
#6 (permalink)
|
|
Administrator
Posts: 872
Join Date: Jun 2006
Number of Domains: hundreds
|
OK this is it:
Its called a 301 Redirect. It conserves your PR and tells search engines you have moved.
Quote:
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.
|
__________________
Sig: Before I post on Domain Social, I read the rules!
|
|
|
|

12-09-2006, 09:30 PM
|
#7 (permalink)
|
|
Member
Posts: 98
Join Date: Nov 2006
Number of Domains:
|
That is really really cool! Keeping PR is SOOO important in our world of searches engines. This information is sure to come in handy for many of us.
|
|
|
|
12-13-2006, 04:12 AM
|
#8 (permalink)
|
|
Member
Posts: 72
Join Date: Sep 2006
Number of Domains:
|
Wow, thanks, Zach! I didn't realize that was even possible. I see there isn't an HTML version. Can this be done in ordinary HTML?
|
|
|
|

12-13-2006, 10:58 AM
|
#9 (permalink)
|
|
Administrator
Posts: 872
Join Date: Jun 2006
Number of Domains: hundreds
|
Quote:
Originally Posted by penguinmama
Wow, thanks, Zach! I didn't realize that was even possible. I see there isn't an HTML version. Can this be done in ordinary HTML?
|
I don't link so.
After server side code, you are left with metarefersh:
Code:
<html>
<head>
<meta http-equiv="refresh" content="0;url=http://www.somacon.com/">
</head>
<body>
This page has moved to <a href="http://somacon.com/">http://somacon.com/</a>
</body>
</html>
or javascript :
Code:
<html>
<head>
<script type="text/javascript">
window.location.href='http://www.somacon.com/';
</script>
</head>
<body>
This page has moved to <a href="http://somacon.com/">http://somacon.com/</a>
</body>
</html>
But as you can see, none of these indicate a 301 Status code. It then dosen't communicate to search engines that you have permanentely moved the resource/page. It can even make you look like a portal and hence lose in the rankings.
__________________
Sig: Before I post on Domain Social, I read the rules!
|
|
|
|

12-26-2006, 08:24 AM
|
#10 (permalink)
|
|
Junior Member
Posts: 25
Join Date: Dec 2006
Number of Domains:
|
Thats really cool.
But how do i do 301 request?
|
|
|
|
 |
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|