homepage Welcome to WebmasterWorld Guest from 54.225.57.156
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Subdomains redirected to primary domain
phpmaven




msg:3707716
 9:59 pm on Jul 25, 2008 (gmt 0)

I have my rewrite rules set up to redirect any subdomains to my primary domain. I.E. whatever.mydomain.com or diddlysquat.mydomain.com 301 redirect to mydomain.com

My question is: Is this dangerous? Could it lead to potential problems with Google? Could this be abused by others to create duplicate content issues?

Thanks,

Mark

 

Quadrille




msg:3708402
 12:11 am on Jul 27, 2008 (gmt 0)

I see no risks there.

What used to be on the subdomaons? (why do they exist?)

jdMorgan




msg:3708612
 2:40 pm on Jul 27, 2008 (gmt 0)

As long as you verify that a 301-redirect is returned (using a server headers checker), there is no problem.

In many cases, wild-card subdomains are set up as the default hosting account configuration. But if not, it's actually not a bad idea to implement wild-card subdomains and redirect them all to the canonical domain. This allows you to configure your DNS server --which is authoritative for your entire domain-- to prevent others playing 'games' by defining one or more of your subdomains on DNS servers that they control or have compromised.

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved