• I have been installing wordpress sites for years, and I am having a weird issue.

    I have my main site, and now I want to install wordpress in a subdirectory, so I can test out my new theme. I made a new directory/folder. Example: mysite.com/wptest

    I created a new database, and username and password. Uploaded the wordpress files to the subdirectory. The installation over the web redirected me to my home page as soon as I entered the database information. I tried another browser, and the same thing. Next I edited the wp-config file, and I am getting the exact same issue when I go to any URL in the sub directory, everything just takes me back to my home page. I tried:

    mysite.com/wptest
    mysite.com/wptest/wp-admin
    mysite.com/wptest/wp-admin/install.php

    What would be causing this redirection and not taking me to the actual wordpress installation?

Viewing 3 replies - 1 through 3 (of 3 total)
  • some rules in .htaccess or some plugin which might be generating this type of behaviour. you can try checking for those.

    i am running wordpress inside directory on DO from last one year.

    Thread Starter steve21

    (@steve21)

    Ok, this is what my htaccess has in it’s file (it my root)

    # 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>
    
    # END WordPress

    I am not sure exactly what to change.

    Thread Starter steve21

    (@steve21)

    Hello,

    Would anyone else have any answer to why my test wordpress directory would be redirecting back to my home page (without being able to install for testing)? I never seen this issue before, and I am not sure what to do or check.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Redirecting to my homepage during a new installation in a subdirectory’ is closed to new replies.