This seems to be the working answer I'll go with. In principle, this should be placed in the directory that you want to redirect, in my case, it is root / site /.
Rewriteengine on
RewriteCond% {http_host}! ^ www.beta.example.org $ [nc]
RewriteRule ^ (. *) $ Http://beta.example.org/ $ 1 [r = 301, nc, L]
I assume the first rule ignores www? I would like to get around this, but I donβt know exactly why it would have been created anyway. this will rewrite any URL that accesses this .htaccess file (inside your subdirectory) and direct you to the same URL without a list of subdirectories. This does not actually work with the index.php rewrite tool, but this is normal because it still reaches the correct page.
If anyone has a better option for me using Joomla, I would be happy to hear it. But, I already want it because it gives me great results.
source share