Support » Fixing WordPress » WordPress makes 404 error when going to domain folder

Viewing 11 replies - 1 through 11 (of 11 total)
  • Moderator Marius L. J.

    (@clorith)

    Hi,

    So you have WordPress installed on your primary site, and then made a folder named v2 and put WordPress in it as well?

    If this is the case, WordPress notices the config file from your primary site, and tries using it, and thus can’t find the location any more. You’ll ideally not want to nest WordPress installs like that, it’s better to create a new subdomain with a new root folder (for example v2.mysite.com which won’t interfere with the already existing config file

    mikecottam

    (@mikecottam)

    Hello.

    What content have you placed in the ‘v2’ folder?

    When I try to access that page, there seems to be an auto-direct to https://steamshopsrbija.com/cart/

    aleksicbre2017

    (@aleksicbre2017)

    Thanks for replies. Just to explain.

    @clorith
    I do not have SSL on subdomains, so I can not make new version of site there.

    @mikecottam
    Hi Mike, I place new WP installation which will be new version of site when it’s done.

    I made that 404 error page redirects to cart page, so it IS 404 error page, but I added a redirection to cart page.

    Still have any ideas?

    Thanks!!

    mikecottam

    (@mikecottam)

    Thanks for the clarification. I’m scratching my head to be honest, have you raised the issue with the web host?

    It could be a configuration issue with your databases, but I don’t see how if you’ve installed a completely fresh WordPress installation in the v2 folder… did you install WP in the v2 folder manually, or did you use the web host installation service?

    aleksicbre2017

    (@aleksicbre2017)

    I install it with cPanel installation service (always fresh WP version)

    aleksicbre2017

    (@aleksicbre2017)

    Is there something that I can do (except subdomain use)? 🙁

    mikecottam

    (@mikecottam)

    I can’t see where the issue is, except maybe with the database configuration.

    Below is a link to an article in the WordPress Codex, about installing multiple blogs. You could check that against the configuration on your databases.

    https://codex.wordpress.org/Installing_Multiple_Blogs

    aleksicbre2017

    (@aleksicbre2017)

    @mikecottam Thanks, I will check it.

    edit>
    Checked it, and can not find anything that is related to my problem.

    • This reply was modified 3 years ago by aleksicbre2017. Reason: update
    mikecottam

    (@mikecottam)

    OK, I don’t know then. Hopefully one of the guys who has more experience in database configuration will be able to help, sorry I couldn’t resolve this one for you.

    aleksicbre2017

    (@aleksicbre2017)

    Okay, thanks anyway for trying to help!

    Anyone with help?

    aleksicbre2017

    (@aleksicbre2017)

    OMG, after a long search I found solution! Here is help for others if need:

    Im quote:

    To exclude the subfolders from the WordPress rewrite rules, you need to edit the .htaccess file and change the bold line below:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    # RewriteRule . /index.php [L] # Original line
    RewriteRule ./ /index.php [L] # New line
    </IfModule>
    # END WordPress

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘WordPress makes 404 error when going to domain folder’ is closed to new replies.