WordPress.org

Ready to get started?Download WordPress

Forums

Fresh WordPress 2.7 installation, redirect loop problem (2 posts)

  1. Kyle H
    Member
    Posted 5 years ago #

    Hello, I did a fresh installation of WordPress 2.7 from Fantastico. When i try to go to the blog, it keeps having a redirect loop and firefox says the following:

    "Firefox has detected that the server is redirecting the request for this address in a way that will never complete."

    I have recently added the following code in the ROOT of the website (blog is installed in /swordblog). You can see my .htaccess file below that is in the root directory. I have it forwarding all domain.com requests to http://www.domain.com. Well this seems to be causing an endless loop when trying to login to wordpress or trying to go to the blog. Any suggestions? Thanks

    RewriteEngine On
    RewriteBase /

    RewriteCond %{HTTP_HOST} ^mydomain.net
    RewriteRule (.*) http://www.mydomain.net/$1 [R=301,L]

  2. MichaelH
    Member
    Posted 5 years ago #

    To make WordPress available at http://mydomain.com just change in Settings->General, the Blog address (URL) to http://mydomain.com and put this index.php file in your web-root folder (it is the same folder that contains the swordblog folder)

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', true);
    require('./swordblog/wp-blog-header.php');
    ?>

    Then update your permalinks in Settings->Permalinks.

    Or course get rid of that .htaccess

    This concept is explained in:
    Giving_WordPress_Its_Own_Directory

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.