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, 1 month ago.

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

    janderso9980
    Participant

    I have read thru everything I can, but still unsure how to handle subdirectory installation. I have existing site named http://www.example.com. My current blog is http://www.example.com/blog. I want to add additional blogs. I understand I have to move my WordPress files to http://www.example.com, 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]

    </IfModule>

    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.