Solved

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

Posted on 2008-06-11
4
179 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to combine and minify CSS and JS files 5 42
ASP get fieds value 2 22
Any Way to rotate banner ads from Commission Junction? 2 38
title attribute 5 27
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
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 …

730 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