Hello,
I would like to ask for help for how to configure the .htaccess to make URL redirection outside the Joomla folder. Thanks and below are the details.
Joomla folder
www.mydomain.com/jfolder
URL redirection would like to create:
www.mydomain.com/tnc
- I would like to have redirection to address :
www.mydomain.com/jfolder/help/tnc
- "Request Only", "Decode URL" checked , correct?
I found whenever I enter a url outside the joomla folder /jfolder it just redirect to my joomla base direct, like this
TYPE:
www.mydomain.com/tnc
GOTO:
www.mydomain.com/jfolder
I WANT:
www.mydomain.com/jfolder/help/tnc
I guess there something wrong with my .htaccess.
- jfolder/.htaccess (I use the Joomla default .htaccess)
#RewriteBase / (This is commented out)
- /.htaccess (Joomla default one with below customization)
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteCond %{REQUEST_URI} !^/jfolder/
RewriteRule ^(.*)$ /jfolder/$1
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteRule ^(/)?$ jfolder/index.php [L]
RewriteBase /
^^ Should I change it to "RewriteBase /jfolder" ?
Please advise and thanks a lot!