Use .htaccess to Setup WordPress in a SubFolder

It helps in the long run to install WordPress in a sub folder, this will keep multiple domains / folders better organized in your ftp.

RewriteEngine on 
RewriteCond %{HTTP_HOST} ^(www.)?karmaverse.ca$ 
RewriteCond %{REQUEST_URI} !^/subfolder/ 
RewriteCond %{REQUEST_FILENAME} !-f 
RewriteCond %{REQUEST_FILENAME} !-d 
RewriteRule ^(.*)$ /subfolder/$1 
RewriteCond %{HTTP_HOST} ^(www.)?karmaverse.ca$ 
RewriteRule ^(/)?$ subfolder/index.html [L]

Leave a Reply

katherine as a flat graphic icon

About Me

I’m an African / Ojibwe First Nations Web Developer living in Winnipeg, Manitoba.

Visit the Tips and Blog to see what I’m working on.