Wordpress redirect loop - please help

Discussion in 'PHP' started by seo alchemist, Dec 8, 2009.

  1. #1
    I've just copied my WordPress site's index.php and .htaccess to the root of my domain from /blog/ so that it will appear in the root, while the files stay in a folder.

    The problem is that I've tried to create page called /blog for my posts to appear on, but it's not working as I get a redirect loop instead.

    The .htaccess file of the root currently reads:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]
    AddHandler x-httpd-php5 .php
    AddHandler x-httpd-php .php4
    </IfModule>

    Redirect /Search-Engine-Optimisation-Consultant-CV-SEO-SEM-PPC-Analytics.htm/ http://seocv.co.uk/seocv.html

    Redirect /Search-Engine-Optimisation-Consultant-CV-SEO-SEM-PPC-Analytics.htm http://seocv.co.uk/seocv.html

    Redirect /blog/copy-of-the-proposed-congress-banking-bailout-bill/ http://www.marketappeal.co.uk/index.php
    Redirect /blog/links-information-straight-from-the-source-1549/ http://www.marketappeal.co.uk/index.php
    Redirect /blog/website-design-competition-prize-100-commercial-property-website/ http://www.marketappeal.co.uk/index.php
    Redirect /) http://www.marketappeal.co.uk/blog/index.php
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress
    That's clearly a mess, which bit's don't I need please?
     
    seo alchemist, Dec 8, 2009 IP
  2. JAY6390

    JAY6390 Peon

    Messages:
    918
    Likes Received:
    31
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You need to change the site home in the database. It will redirect you to the original unless you change it. Open your wordpress database, browse the wp_options table and look for the url where it has http://www.yoursite.com/blog/ and change it to remove the /blog. I think the option is called site_home
    If you log into your wp-admin you should be able to change it in there under the settings tab
     
    JAY6390, Dec 8, 2009 IP