1
   

SEO for two Domains Pointing at single Sub folder

 
 
Reply Sun 3 Oct, 2004 08:37 am
I have portal mysite.com and now I want to have another copy of this site mynewsite.com. I want the indexpage1 to be displayed when user types mysite.com as address and indexpage2 if user types mynewsite.com .. I already have both sites pointing to index.php .
My ISP does not permit to point the files ..hence I have to point it to same index.php . I am just wondering ..doing this through PHP will cause Search engines to unmark my site
Can someone please suggest how to solve this without effecting the SE.

Please help
Thanks
  • Topic Stats
  • Top Replies
  • Link to this Topic
Type: Discussion • Score: 1 • Views: 1,753 • Replies: 6
No top replies

 
Craven de Kere
 
  1  
Reply Mon 4 Oct, 2004 10:28 pm
No matter what the method, if the content is the same SEs will dislike it. Will the content be different?

One trick would be to use a rewrite condition based on referrer, I don't have time to write extensive rules for you, but if you just need an easy fix I might be able to help.

A more complex one would be to use a subdirectory, and then rewrite urls there (without the users knowing). Then the utl paths would all have to be relative paths.
0 Replies
 
Craven de Kere
 
  1  
Reply Mon 4 Oct, 2004 10:33 pm
Some code examples:

Code:RewriteEngine on
RewriteCond %{HTTP_HOST} !^.*able2know\.com [NC]
RewriteRule (.*) http://www.able2know.com/$1 [R=301,L]


Quote:
RewriteEngine on


Turns on mod_rewrite

Quote:
RewriteCond %{HTTP_HOST} !^.*able2know\.com [NC]


The condition says that if the http host is not (the ! is not equal) able2know, to proccess the rule. The NC is to say it's not case sensitive. Note the escaped periods.

Quote:
RewriteRule (.*) http://www.able2know.com/$1 [R=301,L]


The rule: the (.*) means anything, so it takes any request and passes it on to the $1 (which is a variable) The end of the rule tells it to do a 301 redirect and to process no rules after this, you probably do not want the redirect.

Code:RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://able2know.com/.*$ [NC]


That is an example of a rewrite condition based on referrer. The first rule is for blank referrers and the second for referrers that are not able2know.com

Using these examples, you should be able to make a solution with some experimentation.
0 Replies
 
aalishan
 
  1  
Reply Thu 7 Oct, 2004 02:14 am
Thanks Craven,
I will read more on Rewrite stuff and will try to implement your suggestions.. as of now.. I have no clue of "Rewrite" .. I am blindly using your SEO rewrite mod and it works great.
Regards
Aalishan
0 Replies
 
aalishan
 
  1  
Reply Thu 13 Jan, 2005 03:11 am
0 Replies
 
Craven de Kere
 
  1  
Reply Thu 13 Jan, 2005 11:05 pm
What you are asking about would need 'cloaking' and could upset Google to the point of removing your site from their engine permanently.
0 Replies
 
aalishan
 
  1  
Reply Fri 14 Jan, 2005 03:01 am
Cravin,
Thanks for advice. I better drop the idea Very Happy
0 Replies
 
 

Related Topics

In How much time a website can be developed? - Question by aussiejumpingcastle
Webdevelopment and hosting - Question by harisit2005
Showing an Ico File - Discussion by Brandon9000
how to earn money in internet - Discussion by rizwanaraj
The version 10 bug. Worse then Y2K! - Discussion by Nick Ashley
CSS Border style colors - Question by meesa
There is no Wisdom in Crowds - Discussion by ebrown p
THANK YOU CRAVEN AND NICK!!! - Discussion by dagmaraka
I'm the developer - Discussion by Nick Ashley
 
  1. Forums
  2. » SEO for two Domains Pointing at single Sub folder
Copyright © 2021 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.03 seconds on 07/28/2021 at 07:39:10