301 Redirect for Hyphenated domains - Help

Discussion in 'Search Engine Optimization' started by leapharris, Jun 23, 2011.

  1. #1
    Hi,

    I have a domain http://seo-experts-india.in which is in wordpress blog. I tried all possible ways to redirect it from non www version to www version by editing .htaccess file . The .htaccess file will look like this :

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

    But all these case web browser not able to complete the request and resulting an error "This webpage has a redirect loop
    The webpage at http://www.seo-experts-india.in/ 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."

    If any one knows this fix please provide the exact steps. its urgent
     
    leapharris, Jun 23, 2011 IP
  2. leapharris

    leapharris Member

    Messages:
    49
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #2
    Hi I have been in a search for redirect of 'non www' version of my web site http://seo-experts-india.in to www version http://www.seo-experts-india.in from last 2,3 days. I have tried all the possible way by editing .htaccess file, but it was showing the same error as I mentioned earlier. At last I got the solution. The easy solution of this issue is as follows:

    step 1: Go to domain/wp-admin
    step 2: Open settings(general settings)tab left bottom side
    step 3: there you will be able to see 2 options
    a)WordPress address (URL)
    b)Site address (URL)
    step 4 : change this both web address to www.domain.com
    step 5: save changes and YOU DONE

    This is so easy and you do not want to play with .htaccess file and changes inside this file may cause entire web site down. Please keep a back up of .htaccess file before you are going to play with it
     
    leapharris, Jun 28, 2011 IP