Web Hosting
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress Reply To: Folder

Discussion in 'Misc WordPress Requests' started by Armando Duran, Oct 29, 2017.

  1. Armando Duran


    Reply To: Folder, by Armando Duran

    Method I as explained in “Giving WordPress Its Own Directory” may be what you are looking for.

    Here are the steps:

    1. After Installing the wordpress in root folder, move EVERYTHING from root folder into subdirectory.
    2. Create a .htaccess file in root folder, and put this content inside (just change example.com and my_subdir):

    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    RewriteCond %{REQUEST_URI} !^/my_subdir/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ /my_subdir/$1
    RewriteCond %{HTTP_HOST} ^(www.)?example.com$
    RewriteRule ^(/)?$ my_subdir/index.php [L]

    Reply To: Folder

Share This Page

Web Hosting