• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 183
  • Last Modified:

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

?
0
rbend
Asked:
rbend
  • 2
1 Solution
 
James MurrellProduct SpecialistCommented:
0
 
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
0
 
James MurrellProduct SpecialistCommented:
0
 
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.


@cs97jjm3

Frames have some side effects.
http://www.dynamicsitesolutions.com/html/reasons-to-avoid-frames-and-iframes/
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now