Solved

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

Posted on 2008-06-11
4
175 Views
Last Modified: 2012-06-27
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
Comment
Question by:rbend
  • 2
4 Comments
 
LVL 31

Accepted Solution

by:
James Murrell earned 50 total points
ID: 21762790
0
 

Author Comment

by:rbend
ID: 21763392
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
 
LVL 31

Expert Comment

by:James Murrell
ID: 21763647
0
 
LVL 42

Expert Comment

by:David S.
ID: 21765175
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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
In this tutorial viewers will learn how add a full-size background image to a webpage using CSS3. Create a new HTML document with an internal stylesheet.: In CSS, define the html element to have a background image. Use a high resolution image.: In t…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now