I have a WordPress website with root located at
http://www.example.com/web

Via htaccess, when I visit that address I would like to see what’s on http://www.example.com/web/about-me with the browser still displaying http://www.example.com/web.

Is it possible to achieve this via .htaccess? What I have right now is

BEGIN WordPress

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /web/
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /web/index.php [L]
</IfModule>

END WordPress

I tried adding at the bottom

RedirectMatch ^/$ /about-me/

Without any success.

Read more here: Website homepage to show subdirectory content via htaccess


Solution:

If you know the solution of this issue, please leave us a reply in Comment section, to update the question.


Wordpress related questions and answers: