Guys,
Asking for your help:
I want to write a htaccess rewrite rule that will redirect all urls :
accounts.mysubdomain.com/TB/apps/… –>
accounts.mysubdomain.com/apps/
can you please help me out?
TIA
Guys,
Asking for your help:
I want to write a htaccess rewrite rule that will redirect all urls :
accounts.mysubdomain.com/TB/apps/… –>
accounts.mysubdomain.com/apps/
can you please help me out?
TIA
Put the following code into your .htaccess and check if it is working.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^accounts\.mysubdomain\.com$
RewriteRule ^TB/apps/(.*)$ http://accounts.mysubdomain.com/apps/ [R=permanent,L]
I’ll try. thanks!
stormy,
What about the No Case flag on the {HTTP_HOST} variable and telling elad that there is no need for an external redirection (http://%{HTTP_HOST}), only the redirection to the apps directory?
Regards,
DK