Force nonwww to www

Discussion in 'Apache' started by Bohol, Feb 7, 2008.

  1. #1
    Hello Friends,

    I have a Wordpress blog. My concern is that I want all browser address to be www. If I type www.mysite.com, my browser changes to http://mysite.com

    What shall I do? Here's the .htaccess of Wordpress.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress
     
    Bohol, Feb 7, 2008 IP
  2. NeverTheSame

    NeverTheSame Peon

    Messages:
    94
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Change URL in WordPress options.
     
    NeverTheSame, Feb 9, 2008 IP
  3. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Where can I find the Wordpress options?
     
    Bohol, Feb 9, 2008 IP
  4. Cybernaut

    Cybernaut Peon

    Messages:
    408
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Login to wordpress as admin. Then goto Options tab. Check if "WordPress address" has www. in it. If not, then put www. Otherwise check you DNS host records, they might be redirecting www to non-www site.
     
    Cybernaut, Feb 9, 2008 IP
  5. Bohol

    Bohol Peon

    Messages:
    2,680
    Likes Received:
    75
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Thank you, Cybernaut. I will check on this now. Thank you.
     
    Bohol, Feb 10, 2008 IP
  6. devilkitty

    devilkitty Peon

    Messages:
    303
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #6
    devilkitty, Feb 12, 2008 IP