• I’m trying to get my site ‘www.example.com/sub’ to run from http://www.example.com

    I followed instructions in this page.
    When I get to step 6, I can’t login. I get an error screen:

    The page isn’t redirecting properly

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

Viewing 6 replies - 1 through 6 (of 6 total)
  • Yea, if you cannot log in and change the URL in Settings you’ll have to do it in the database.

    Essentially, log into the database where you installed WP and find the record with the URL. This needs to be changed to the working URL.

    Once logged in, change it using WP-Admin. It may require a reinstall of WP if you installed it to the wrong directory.

    Thread Starter jschnyderite

    (@jschnyderite)

    I’m losing you a little bit.

    So I need to go into the DB and change the url back to my subdirectory?

    Yes.

    If you changed it through WP-Admin and it broke, then you will need to reinstall WordPress to the correct directory.
    Luckily you should be able to use the existing table (so you won’t lose the content).

    Thread Starter jschnyderite

    (@jschnyderite)

    Once I get it back, how will I redirect my subdirectory install to display from root? I followed instruction exactly.

    Any idea what my .htaccess file should look like when doing this? I’m thinking maybe something in there is wrong and that is why I’m not directing correctly.

    Does this look right?

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

    # END WordPress

    Thread Starter jschnyderite

    (@jschnyderite)

    and do you know exactly what field(s) I should change in my DB? I don’t know if changing the URL affects many fields, or all other links are relative to my main URL

    It’s been a long while since I’ve had to play around with the WP Database records – it’s pretty straight forward when looking through the tables.

    As for the redirect, I’d simply install WP to the root directory – having a redirect can cause problems, and isn’t SEO friendly.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Redirecting to subfolder install’ is closed to new replies.