• I have the following scenario.

    I have 2 htaccess files. One in the wordpress folder and one in the HTML folder of my server.

    The html folder is where my wordpress folder is and my index.php file (theres also one index.php file in the wordpress folder)

    I cant access my hosting providers control panel because it resides at https://www.mydomain/controlpanel.

    They are telling me it’s because of the htaccess file redirecting to the site rather than their cpanel.

    So my questions are, should my htaccess file be in the HTML folder or in the wordpress folder?

    I am using the one in my html folder for redirects for old site links and there is the standard code per wp in it.

    Do I need the one in the HTML folder or can I get rid of that one and copy the redirects to the one in the wordpress folder along with the standard wp code that exists? If so will my site still work properly and still retain the redirects?

    If it matters,my site is setup under general as:
    Wordpress url:https://www.mydomain.com/wordpress
    Site Address (URL): https://www.mydomain.com

    I know when i mess with the htaccess file I need to go into my wp cpanel and reset things for the site to come back up.

    I just want to make sure I don’t mess anything up.

    Currently, I need to gain access to my host companies control panel so I need a fix for this, other than temporarily removing the htaccess file from the html folder everytime I need to access the cpanel.

    Thanks,
    iso

Viewing 8 replies - 1 through 8 (of 8 total)
  • Your .htaccess file should be in the wordpress folder.

    Thread Starter isonychia

    (@isonychia)

    So, if I remove the htaccess file, thats in the html folder, thats OUTSIDE the wordpress folder, my site will still function properly, because the other htaccess file is in the wordpress folder?

    Thread Starter isonychia

    (@isonychia)

    I just removed the htaccess file, and added my redirects to the other htaccess file. The site works BUT I don’t believe my redirects work anymore.

    Also i am getting this alert from wp permalinks:
    If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.

    My htaccess file is set to 777, so I don’t know why it is saying that. Also it already has the code in place.

    iso

    and added my redirects to the other htaccess file

    What are these redirects for?

    My htaccess file is set to 777, so I don’t know why it is saying that.

    Ask your hosts to check in case you have a file ownership issue.

    Thread Starter isonychia

    (@isonychia)

    The redirects were for old site pages that no longer exist but are still available on other sites or in search engines.

    Does the fact that the file is ONLY in the wordpress folder and no longer exists outside the folder have anything to do with it?

    Does wordpress know to use the htacces file inside the wordpress folder?

    iso

    Does the fact that the file is ONLY in the wordpress folder and no longer exists outside the folder have anything to do with it?

    Only if this is a sub-directory install that has been re-configured to take over the root domain.

    Thread Starter isonychia

    (@isonychia)

    How would I know if it’s a sub directory install?

    This is how I have it set-up:

    Under general as:
    Wordpress url:https://www.mydomain.com/wordpress
    Site Address (URL): https://www.mydomain.com

    How would I know if it’s a sub directory install?

    The urls you provided give the answer. This is a sub-directory install that has been re-configured to take over the root domain.

    Copy (don’t move) the .htaccess from the wordpress folder over to the root html folder.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘.htaccess file blocking me from my hosts control panel’ is closed to new replies.