ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Help adding www's

June 27, 2012 11:35am

Subscribe [3]
  • #1 / Jun 27, 2012 11:35am

    c.nico

    10 posts

    It kills me to ask this, but how can I add the “www” to my urls by default. There is a conflict with the client’s internal system, and it’s not allowing them to access their own website unless it contains “www” in the url. It is perfectly fine everywhere else, but they are running a windows biz server config in the building and it’s preventing them from finding the site. I DO NOT know the all of the gritty details of the server issues here.

    I’m hoping someone can help. I looked around a bit and found this thread, http://ellislab.com/forums/viewthread/212642/ which leads me to believe I can make this happen rather easily, but it doesn’t include any instruction.

    Thanks in advance! I truly appreciate the help.

    Here is the site if you need it: http://centralcounties.org

  • #2 / Jun 27, 2012 11:57am

    c.nico

    10 posts

    I think I’ve resolved this. Didn’t realize it was as simple as adding www to the URL’s in “General Config”.

    Lol. Sorry for being an EE rookie.

    Thanks!

    p.s. - If I’m totally wrong (not surprising) please let me know the proper way to handle this. Thanks!

  • #3 / Jun 27, 2012 12:29pm

    c.nico

    10 posts

    In case anyone else needs this down the road… I also needed to change the paths in the file manager to get my images back.

  • #4 / Jun 27, 2012 6:08pm

    DanL

    56 posts

    You can force this in htaccess with:

    RewriteEngine On
    RewriteCond %{HTTP_HOST} !^www\.
    RewriteRule ^(.*)$ <a href="http://www.%{http_host}/$1">http://www.%{http_host}/$1</a> [R=301,L]

    There are other variations if this doesn’t work for you.

    http://www.htaccessbasics.com/force-www-nonwww-domain/

  • #5 / Jun 28, 2012 12:00pm

    Shane Eckert

    7174 posts

    Hey c.nico,

    I am glad that you found your way to the solution.

    You found the proper paths to update.

    If you need anything else, please just let me know by opening a new thread.

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases