hide my subdirectory everywhere on my domain
-
i have a domain https://www.theblogfordads.com
the wordpress install is in https://www.theblogfordads.com/tbfd/
i have the htaccess file in the root as follows so it redirects theblogfordads.com/ to the actual blog install dir /tbfd/ and hides its
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?theblogfordads.com$
RewriteRule ^(/)?$ tbfd/$1 [L]but when i go anc click on a post it will bring the subdirecoty back up the htaccess file in the actual install dir /tbfd/ is ass follows:
This is the one i believe is causing the issue? how can i make it so no matter what post or where it only shows https://www.theblogfordads.com in the address bar
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /tbfd/
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /tbfd/index.php [L]
</IfModule>
- The topic ‘hide my subdirectory everywhere on my domain’ is closed to new replies.