Use htaccess to add subdirectory to url while displaying base url

34 views Asked by At

I have searched so many variations of this but can't seem to find exactly what I need. I need to add a directory to a URL but display the content of the base URL.

e.g. mydomain.com/directory to display content at mydomain.com while display (not changing) mydomain.com/directory in the address bar.

In case it's important, it's a Wordpress install, and it can't be moved to this directory manually; this would be the simplest option I know.

I have changed to permalinks to include the added directory so this only needs to affect the base/home page; I thought this may make this easier but can remove if a solution works across the whole site. So, if an additional rule could be included so it only works on base URL, that would be great.

Thanks!

0

There are 0 answers