Need Wordpress rewrite help please

Discussion in 'Apache' started by Searchnology.com, Nov 16, 2009.

  1. #1
    Hello,

    I want my blog URLs to appear with the www subdomain. Currently the URLs appear as *http://mydomain/blog* but I want *http://www.mydomain/blog*

    I am using Wordpress 2.8.6 which produces an htaccess file like below.

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


    I found the code below that is suppose to accomplish this but my blog breaks when I add it the existing htaccess file.

    Options +FollowSymlinks
    RewriteEngine on
    rewritecond %{http_host} ^mydomain.com [NC]


    rewriterule ^(.*)$ http://www.mydomain.com/blog$1 [R=301,NC]

    Thanks for any assistance.
     
    Searchnology.com, Nov 16, 2009 IP
  2. Searchnology.com

    Searchnology.com Peon

    Messages:
    451
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I found the settings in the admin area. Thanks man!

     
    Searchnology.com, Nov 16, 2009 IP