homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / WebmasterWorld / New To Web Development
Forum Library, Charter, Moderators: brotherhood of lan & mack

New To Web Development Forum

something forces my site to non-www
no idea who removes the www

Msg#: 4265071 posted 9:40 am on Feb 10, 2011 (gmt 0)

I wonder if somebody could help me solve a mystery: something forces the site example.com to be to be without the www. Even if I type it into the address bar in Chrome, firefox or IE, the www disappears when I hit the enter key and the page is displayed.
I could not find anything in the apache 2.0 configuration that would do this, webmaster took has no setting for this. What could cause that?

[edited by: brotherhood_of_LAN at 3:50 pm (utc) on Mar 3, 2011]
[edit reason] exemplified the domain [/edit]



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

Msg#: 4265071 posted 7:16 pm on Feb 11, 2011 (gmt 0)

This is either a configuration at the hosting level or a mod_rewrite rule in .htaccess at the root of your domain. In either case it's a good thing that it's one or the other, your site's position in the serps is not divided among two different URL's - which is how the SE's would see them. The 301 redirect to one or the other puts all the weight in one URL for identical content, which is what you want.


Msg#: 4265071 posted 9:37 am on Jun 24, 2011 (gmt 0)

What script is the site running upon, are you sure the script is configured to run upon the "www" version of the domain and not the "non-www" version?

Furthermore, have you checked any .htaccess rules that could be rewriting these requests?

SEO wise, your current situation is better than having both enabled; decide on either "www" or "non-www" and rewrite either accordingly using .htaccess rules.

JAB Creations

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

Msg#: 4265071 posted 10:48 pm on Jul 10, 2011 (gmt 0)

Access your site's FTP, copy the .htaccess file (-a is the filter to display hidden files if you don't see it listed). If after temporarily removing the .htaccess file your site still redirects then it's a scripting language. If it does stop redirecting post the code inside the .htaccess file. Don't forget to put it back and be very careful about changing it until you've gained the knack for editing Apache configuration. I would recommend testing locally on your personal computer using XAMPP which is an out-of-the-box solution, you can access the local server once you set it up at h t t p : / / localhost / (without spaces).

- John

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / New To Web Development
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