• Hello Forum Members.

    I recently launched my first WP site. I installed WP into a subdirectory while I was building it and updated the htaccess in the subdirectory to protect the WP install from prying eyes.

    Instead of moving the WP subdirectory install into the root, I modified the site address under settings and copied index.php from the subdirectory into the root and everything is working fine. Yay!

    Question 1: Do I need to move/copy the htaccess file from the subdirectory with my security settings(ie protecting htaccess, wp-config, directory browsing) into the root or is it fine to leave it in the subdirectory?

    Question 2: I do have a htaccess in the root that WP probably generated after I changed the site address in settings, but the root version has no security settings. Is this a security problem?

    Thank you for your time and words.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello there!

    If you have any doubt about the placement of your .htaccess file, just access to your installation folder, delete the existent file of .htaccess and, from the dashboard, go to the Settings >> Permalinks page and hit the blue button to generate a new .htaccess file.

    If you have any additional hacks that you need to add into that archive, just open it and past it there.

    Moderator Jan Dembowski

    (@jdembowski)

    Forum Moderator and Brute Squad

    Side note: Moved to Fixing WordPress, this is not a Developing with WordPress topic.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘htaccess placement’ is closed to new replies.