htaccess to hide Joomla in public_html -> subfolder

by user2976317   Last Updated October 17, 2019 08:10 AM - source

I installed Joomla using a quickstart package and store the files in a subfolder (named: jml) in public_html/jml. I normally use the following commands to rewrite the url from https://www.test.com/jml to https://www.test.com/ (to hide the "jml"). It works correctly with new Joomla installation, but with this quickstart package it can only hide the folder named "jml" for backend (https://www.test.com/administrator) but not the frontend as it will still show https://www.test.com/jml/ even though all settings have been set accordingly. I'm not sure which file I need to check and not very familiar with htaccess. Can you advise how to fix this issue? Could it be file permission? Thanks

Settings: - Use URL Rewriting (enabled) - live_site (updated) - RewriteBase / (enabled) - cpanel doesn't have the feature to set root folder.

htaccess

RewriteEngine on
RewriteCond %{HTTP_HOST} ^test.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.test.com$
RewriteCond %{REQUEST_URI} !jml/
RewriteRule (.*) /jml/$1 [L]



Related Questions



remove index php add language code in the url

Updated June 09, 2015 13:04 PM

Redirecting site to subfolder

Updated May 06, 2016 08:04 AM