homepage Welcome to WebmasterWorld Guest from 54.227.20.250
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

10+ Year Member



 
Msg#: 3707714 posted 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

WebmasterWorld Senior Member quadrille us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3707714 posted 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

WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 3707714 posted 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