Jump to content

Apache config: How to prevent duplicate Content? htaccess? ServerAlias?


Recommended Posts

Hi guys,

 

I am currently working on setting a shop online and would like to know the best way for url redirections and duplicate content management.

 

I have 2 domains which should all be directed to the same "home domain".

 

Also: I want my shop to have the "www." in front of the domain, for example: "www.domain.com"

 

So the configuration should be like this:

"www.domain.com" -> HOME DOMAIN

"domain.com" -> redirects to home domain

"domain-alternative.com" -> redirects to home domain

"www.domain-alternative.com" -> redirects to home domain

 

I have root access to the server and run Apache2.

 

How would you recon to set this up?

 

I would be really thankful for some directions. :-)

 

Kind regards

Rassy

Edited by rassy (see edit history)
Link to comment
Share on other sites

Hi ElPatron,

 

actually I just need the "alias" domains ("domain.com" "domain-alternative.com" "www.domain-alternative.com") to just forward it to the main domain ("www.domain.com"). I DO NOT aim to have a multidomain shop which a different shop configuration per domain....

 

I just want to prevent duplicate content (google wise)....

 

Any suggestions?

Link to comment
Share on other sites

Hi ElPatron,

 

actually I just need the "alias" domains ("domain.com" "domain-alternative.com" "www.domain-alternative.com") to just forward it to the main domain ("www.domain.com"). I DO NOT aim to have a multidomain shop which a different shop configuration per domain....

 

I just want to prevent duplicate content (google wise)....

 

Any suggestions?

 

Google will punish you for not using ccTLD (country code/region Top Level Domains). Read more from Google HERE

Link to comment
Share on other sites

Thanks for the link - but it kind of is off topic as my redirects have nothing to do with "language domains".

 

I would like to have some tipps on the following:

1) How do I redirect "http://domain.com" to "http://www.domain.com"? Does prestashop help me doing this?

2) What is the best way to redirect an alternative domain to the main shop domain? For example: I would like to redirect "http://www.d-o-m-a-i-n.com" to "http://www.domain.com"? How would you guys do this?

 

Thanks for your tipps

Rassy

Link to comment
Share on other sites

You said you wanted to prevent duplicate content yes? Then you need to read the entire article and not just the first paragraph.

 

concerning duplicate content...because you are trying to use re-directs, this will not be a problem because you will be telling search engines that your 'other' domain is either permanently or temporarily re-direct to your main domain.

 

as for actually doing re-directs, there are thousands of threads already on how to accomplish this.

 

Best of luck

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...