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

    
HTaccess - I REALLY need Help
Chico_Loco

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 445 posted 8:23 pm on Feb 22, 2002 (gmt 0)

My site has an infinite amout of subdomains..

Like if i go to hgjr.mydomain.com it's the same as mydomain.com - but the URL stays as the first one..

I was all subdomains to end up at www.mydomain.com - including just mydomain.com (without the www)

PLEASE help!!!

 

Son_House

10+ Year Member



 
Msg#: 445 posted 5:59 am on Feb 26, 2002 (gmt 0)

I really don't know anything about making an htaccess file but I do know that it has been talked about quite a bit here. Try clicking on "site search" at the top of this page and do a search for htaccess.

mivox

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



 
Msg#: 445 posted 6:18 am on Feb 26, 2002 (gmt 0)

It sounds like you have wildcard subdomains enabled on your account. It might be easier for you to ask your host to turn off the wildcard option, and then make up a custom 404 page with a link to your main page from there.

Brett_Tabke

WebmasterWorld Administrator brett_tabke us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 445 posted 6:35 am on Feb 26, 2002 (gmt 0)

Yep, mivox got it. Wildcard DNS. It's up to the host to fix that one.

Marcia

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



 
Msg#: 445 posted 7:19 am on Feb 26, 2002 (gmt 0)

Subdomains I know, but I've asked and never yet been able to find out what wildcard subdomains are? What are they?

littleman

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



 
Msg#: 445 posted 8:35 am on Feb 26, 2002 (gmt 0)

Yeah wildcard DNS, but it could be fixed with some help from mod_rewrite, this will 301 everything other than www.domain.com.

RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.domain\.com$
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^(.*) [domain.com...] [R=301,L]

littleman

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



 
Msg#: 445 posted 8:39 am on Feb 26, 2002 (gmt 0)

Marcia:
Wildcard means that *.domain.com will go to one IP. So www.domain.com, domain.com, and whateveryouwant.domain.com will all point to the same IP. A server still could slice and dice the requests to different sites with name based hosting. I do this a lot.

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