Subdirectory and .htaccess, index.php files

Home Forums Installation and Configuration Subdirectory and .htaccess, index.php files

This topic contains 0 replies, has 1 voice, and was last updated by  janderso9980 7 years, 10 months ago.

Viewing 1 post (of 1 total)
  • Author
  • #676


    I have read thru everything I can, but still unsure how to handle subdirectory installation. I have existing site named My current blog is I want to add additional blogs. I understand I have to move my WordPress files to, but not sure how to deal w/ index.php file from WordPress when I move files. I obviously don’t want to overwrite my root index.php. I also tried installing the plugin before moving the files, and saw that it removed the lines below from the .htaccess file in /blog subdirectory:

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /blog/

    RewriteRule ^index.php$ – [L]

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /blog/index.php [L]


    This gave me 404 errors throughout my blog.

    When I move the WordPress files to root, do I need to make changes to .htaccess? I have an .htaccess file in the root director and another in the /blog subdirectory. Do I still keep one in the /blog directory? Do I keep any files in the /blog subdirectory. If I have to make changes to either .htaccess file, what changes?

    Sorry, for newbie ?s, but any advice greatly appreciated.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.