Domain Social  about domain social  contact domain social     join domain social  domain social forum    domain social store   
FAQ  |   MEMBERS LIST  |   SEARCH  |   TODAY'S POSTS  |   MARK FORUM READ  |  

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!
Reply
 
Trackback Thread Tools Search this Thread Display Modes

Old 11-23-2006, 02:59 AM   #1 (permalink)
zach zach is offline
Administrator
 
zach's Avatar
 

Posts: 872
Join Date: Jun 2006
Number of Domains: hundreds
Trader Rating: (3)
Send a message via MSN to zach
Default 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!
  Reply With Quote

Old 11-24-2006, 01:34 AM   #2 (permalink)
penguinmama penguinmama is offline
Member
 
penguinmama's Avatar
 

Posts: 72
Join Date: Sep 2006
Number of Domains:
Trader Rating: (0)
Default

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?
  Reply With Quote

Remove these by Registering

Old 11-24-2006, 01:20 PM   #3 (permalink)
zach zach is offline
Administrator
 
zach's Avatar
 

Posts: 872
Join Date: Jun 2006
Number of Domains: hundreds
Trader Rating: (3)
Send a message via MSN to zach
Default

Quote:
Originally Posted by penguinmama View Post
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!
  Reply With Quote

Old 12-06-2006, 07:47 AM   #4 (permalink)
penguinmama penguinmama is offline
Member
 
penguinmama's Avatar
 

Posts: 72
Join Date: Sep 2006
Number of Domains:
Trader Rating: (0)
Default

Ah, bummer. How about frames? How does that affect the search engine thing? Then it would be accessed THROUGH the domain, still...
  Reply With Quote

Old 12-08-2006, 12:42 AM   #5 (permalink)
scalamedia scalamedia is offline
Member
 
scalamedia's Avatar
 

Posts: 98
Join Date: Nov 2006
Number of Domains:
Trader Rating: (0)
Default

This has me completely confused. But I am looking forward to finding the answers. Hopefully, someone clears this up for us all.
  Reply With Quote

Old 12-08-2006, 01:14 AM   #6 (permalink)
zach zach is offline
Administrator
 
zach's Avatar
 

Posts: 872
Join Date: Jun 2006
Number of Domains: hundreds
Trader Rating: (3)
Send a message via MSN to zach
Default

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!
  Reply With Quote

Old 12-09-2006, 09:30 PM   #7 (permalink)
scalamedia scalamedia is offline
Member
 
scalamedia's Avatar
 

Posts: 98
Join Date: Nov 2006
Number of Domains:
Trader Rating: (0)
Default

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.
  Reply With Quote

Old 12-13-2006, 04:12 AM   #8 (permalink)
penguinmama penguinmama is offline
Member
 
penguinmama's Avatar
 

Posts: 72
Join Date: Sep 2006
Number of Domains:
Trader Rating: (0)
Default

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?
  Reply With Quote

Old 12-13-2006, 10:58 AM   #9 (permalink)
zach zach is offline
Administrator
 
zach's Avatar
 

Posts: 872
Join Date: Jun 2006
Number of Domains: hundreds
Trader Rating: (3)
Send a message via MSN to zach
Default

Quote:
Originally Posted by penguinmama View Post
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!
  Reply With Quote

Old 12-26-2006, 08:24 AM   #10 (permalink)
kisna kisna is offline
Junior Member
 
kisna's Avatar
 

Posts: 25
Join Date: Dec 2006
Number of Domains:
Trader Rating: (0)
Default

Thats really cool.
But how do i do 301 request?
  Reply With Quote
Reply


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 On
Pingbacks are On
Forum Jump



All times are GMT. The time now is 02:07 AM.

Powered by vBulletin Version 3.6.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.0.0 RC3 © 2006, Crawlability, Inc.