FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


2 urls, one host how to avoid seo duplication





inphurno
Hi everyone,

On my hosting with frihost (whatsyourimpact.frih.net) I have 2 folder eng and fran for the 2 languages of our site. the 2 languages have 2 domains whatsyourimpact.eu.org (english) and votreimpact.eu.org (french), whatsyourimpact.eu.org points at the eng folder and votreimpact.eu.org points to the fran folder.

I have setup a rule like:
rewriteCond %{HTTP_HOST} ^whatsyourimpact\.frih.net [NC]
rewriteRule ^(.*)$ http://www.whatsyourimpact.eu.org/$1 [R=301,L]

to send searches for whatsyourimpact.frih.net to whatsyourimpact.eu.org but I have a new problem now. I noticed that whatsyourimpact.frih.net/eng was still working so i wanted to setup a rule to send it to whatsyourimpact.eu.org/eng.

i tried these things:

1) rewriteRule /eng/(.*) http://www.whatsyourimpact.eu.org/eng/$1 [R=301]

2) redirect 301 /eng/ http://www.whatsyourimpact.eu.org/eng/

3) redirectMatch 301 /eng/(.*) http://www.whatsyourimpact.eu.org/eng/$1

none worked so any suggestions on what i'm doing wrong here?

Thanks in advance
Peterssidan
It looks like you trying to redirect to the eng folder again. That is not what you want. I haven't tested this but I think something like this could work:
Code:
RewriteRule ^eng/(.*)$ http://www.whatsyourimpact.eu.org/$1 [R=301,L]
inphurno
thanks Peterssidan for your response,

i tried your solution out but lets say you call this url:
http://www.whatsyourimpact.frih.net/eng/index.html

you get this with your rule:

http://www.whatsyourimpact.eu.org/index.html
inphurno
If anyone can help me out on this one it would be greatly appreciated Very Happy
inphurno
i also tried something like this:

#RewriteCond %{HTTP_HOST} ^whatsyourimpact.eu.org
#RewriteCond %{REQUEST_URI} !^/fran/
#RewriteRule ^(.*)$ http://www.votreimpact.eu.org/fran/$1 [L]

but it didn't work either Sad
Phil
Not sure if you can do it with Frihost, but I know with some other hosting companies you can set up a seperate IP address. But it costs a little more, About $2 a month with another hosting compnay I use.
I have seen in a few SEO diagnostics where having more than 1 domain ---especially in linking to each other--- hosted with the same IP will be noted.
inphurno
i know that's what i want to fix Very Happy
inphurno
i forgot to mention i have this at the top:

Options -Indexes
Options +FollowSymLinks
rewriteEngine on
RewriteBase /
Related topics
Free SEO: Quality Websites Only Please
Search Engine Hits
Master Tutorial on SEO
What is the difference between a Domain & Sub Domain Nam
Black Hat SEO
Frihost on Wikipedia
Javascript and Dynamic Select Boxes
two domains to one
SEO Friendly URLs
del.icio.us social bookmarking and Search Engine
You've been Rick Rolled!
how to rank my website in SEO?
does a free host and a free domain affect SEO efforts?
SEO your Joomla website
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> SEO and Search Engines

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.