What's wrong with thie .htaccess file. It doesn't MASK the destination URL ?

I need to mask the destination URL in a re-direct.

Here's what to type in:      tools.academicmanagement.com
Here's where its going:   sugar.academicmanagement.com/sugarpro

Here's the .htaccess code:

RewriteEngine on|
RewriteCond %{HTTP_HOST} ^tools.academicmanagement.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.tools.academicmanagement.com$
RewriteRule ^(.*)$ "http\:\/\/sugar\.academicmanagement\.com\/sugarpro" [R=301,L]

The destination URL still shows in the address bar when landing on the page.

How can I have it still say:    tools.academicmanagement.com

Who is Participating?
James MurrellConnect With a Mentor Product SpecialistCommented:
rbendAuthor Commented:
nice article.. and it does tell how to redirect..(which I already am doing), but it doesn't tell me how to mask the destination URL
James MurrellProduct SpecialistCommented:
David S.Commented:
Do all of the domains point to the same server?

The redirect happens when you include the protocol and domain name in the substitution string. Just use a relative path, if you can.


Frames have some side effects.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.