Results 1 to 1 of 1

Thread: How to 301 Redirect Non-www to www URLs

  1. #1
    Thread Starter
    Member webdesignstudio's Avatar
    Join Date
    Sep 2011
    Location
    Singapore
    Posts
    75
    Thanks
    0
    Thanked 4 Times in 4 Posts

    How to 301 Redirect Non-www to www URLs

    I have been following your tutorial of above and done the following

    At htaccess file - added in code as follows :


    # BEGIN WordPress


    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond

    %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php

    [L]
    </IfModule>

    RewriteCond %{HTTP_HOST} ^mydomain\.com$ [NC]
    RewriteRule ^(.*)$ http://www.mydome.com/$1

    [R=301,L]


    # END WordPress


    However resulted :

    This web page has a redirect loop

    The web page at http://www.mydomain.com/ has resulted in too many redirects. Clearing your cookies for this site or allowing third-party cookies may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

    Pls help urgently

    Thanks

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: December 7th, 2011, 08:51 AM
  2. 3.0.5.1 how to redirect new URLS to old ones...?
    By muhabat in forum Help Using ClassiPress
    Replies: 86
    Last Post: June 2nd, 2011, 06:56 AM
  3. How to customize Add New and Other URLs?
    By teller in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: January 16th, 2011, 05:05 AM
  4. site urls's
    By egghead in forum ClassiPress General Discussion
    Replies: 4
    Last Post: September 9th, 2009, 02:04 PM