Posts Topics Forums Images
Search videos from message boards Videos Search messages from microblogs Microblogs Search messages from imdb.com Imdb Search messages from yuku.com Yuku Search messages from lefora.com (free forums) Lefora
My account: Login | Sign Up
Loading... 

Thread: Www redirects to index?

Started 1 month, 1 week ago by sdevaney
I really wasn't sure where to post this so if its in the wrong place I am sorry. So a friend of mine has this forum and he isn't very code knowledgeable but anyways sometimes he will send me links to check out topics like http://www.blah.com/viewtopic.php?t=1600737 And that will redirect me to his index page, where if I just take out the www. and go to http://blah....
Site: Dev Shed Forums - Open Source web development  Dev Shed Forums - Open Source web development - site profile
Forum: HTML Programming  HTML Programming - forum profile
Total authors: 3 authors
Total thread posts: 6 posts
Thread activity: no new posts during last week
Domain info for: devshed.com

Other posts in this thread:

Oler1s replied 1 month, 1 week ago
The server is configured incorrectly. www is the subdomain, and how subdomains are handled depends on the server.

sdevaney replied 1 month, 1 week ago
Could you please explain a little bit as to how www. is the subdomain? Or what might be mis-configured?

Oler1s replied 1 month, 1 week ago
Quote: Could you please explain a little bit as to how www. is the subdomain? How is www the subdomain? These are technical names given to parts of a URL. WWW urls are of the form http://subdomain.domain.tld where the domain and tld are required. If you look at the format http:///www.blah.com, clearly, www is the subdomain. Quote: Or what might be mis-...

sdevaney replied 1 month, 1 week ago
Thank you very much for that explanation it is greatly appreciated!

brianbak replied 1 month, 1 week ago
It is also common to use a rewrite in the .htaccess file to rewrite www. to non. If this is not configured to keep the part after the / then it would forward you to the index. Code: RewriteEngine on rewritecond %{http_host} ^www.stealthyhosting.com [nc] rewriterule ^(.*)$ http://stealthyhosting.com/$1 [r=301,nc]

 

Top contributing authors

Name
Posts
sdevaney
3
user's latest post:
Www redirects to index?
Published (2009-11-08 15:14:00)
Thank you very much for that explanation it is greatly appreciated!
Oler1s
2
user's latest post:
Www redirects to index?
Published (2009-11-08 15:04:00)
Quote: Could you please explain a little bit as to how www. is the subdomain? How is www the subdomain? These are technical names given to parts of a URL. WWW urls are of the form http://subdomain.domain.tld where the domain and tld are required. If you look at the format http:///www.blah.com, clearly, www is the subdomain. Quote: Or what might be mis-configured? No idea. Well, look, the request comes to the computer at blah.com. The request...
brianbak
1
user's latest post:
Www redirects to index?
Published (2009-11-08 15:36:00)
It is also common to use a rewrite in the .htaccess file to rewrite www. to non. If this is not configured to keep the part after the / then it would forward you to the index. Code: RewriteEngine on rewritecond %{http_host} ^www.stealthyhosting.com [nc] rewriterule ^(.*)$ http://stealthyhosting.com/$1 [r=301,nc]

Related threads on "Dev Shed Forums - Open Source web development":

Related threads on other sites:

Thread profile page for "Www redirects to index?" on http://www.devshed.com. This report page is a snippet summary view from a single thread "Www redirects to index?", located on the Message Board at http://www.devshed.com. This thread profile page shows the thread statistics for: Total Authors, Total Thread Posts, and Thread Activity