Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

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

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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Understanding mobile browsers 9 84
document.write() deleting all existing HTML 5 50
Need HTML output in powershell line by line 3 27
Html input text color the frame line 2 20
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…
This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

860 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