WordPress.org

Ready to get started?Download WordPress

Forums

Can't reach blog or login to WP-admin after installation (3 posts)

  1. sonio
    Member
    Posted 2 years ago #

    Installed WP via softaculous, and tried it also manualy, in a folder /blog

    http;//www.tarsales.com/blog

    Regardeless the method used for installation, when I point browser to the url above I get this message: (translated in English)

    Firefox has determined that the server redirects the request for this address in a way that will never end.

    When I point to /blog/wp-admin and try to log in, login details are rejected.

    I only need WP for the blog I want to add to my site but I have WP and WP multisite running properly on two of my subdomains, installed in the root.

    Thank you for advice/solution.

  2. Tim S
    Member
    Posted 2 years ago #

    It's a conflict with a re-direct set up in the .htaccess file. Try placing an .htaccess file in the /blog folder to counteract the one in the root folder. Typically, .htaccess is not recursive and only affects the folder it is in. However, if you've set it up to be recursive it will affect all the subfolders.

  3. sonio
    Member
    Posted 2 years ago #

    Thank you for your fast reply. I didn't think of the .htacess file, thank you for solving the riddle for me.

    Not that I have now any clue about how to remedy it :)

    I never used .ht access files, this one I've set up in the root per instructions of google analytics, to support the redirect of the non www url to the www.

    RewriteEngine on

    RewriteCond %{HTTP_HOST} !^www\.tarsales\.com$ [NC]
    RewriteRule .? http://www.tarsales.com%{REQUEST_URI} [R=301,L]

    Copied the .htaccess file to the /blog, to no effect . I suppose WP by default directs to the non www url and that is what causes the problem when having wp in its own folder on a www url?

    Is it solved if I set up the non www url as cannonical, or can it be solved by changing something in the .htaccess file in the blog folder only.

    The last solution would feel for me a lot safer to do, having lots of advertising campaigns running and not sure if they are safe when changing the cannonical url.

    Thank you for your time.

Topic Closed

This topic has been closed to new replies.

About this Topic