Solved

Unmask URL

Posted on 2004-04-15
2
1,070 Views
Last Modified: 2008-02-26
I have a few different domain names for one site. They are all variations such as domainname.org, domainname.com, domainname.net. Anyways I have two of them setup for fowarding to the one I advertise and typicall use. When the domain name is forwarded it is masked and I want to remove the masking. My site is in PHP with a couple of HMTL pages so I can use just about any language for this. I already have a <base href> tag in my header for the correct domain name but that does not remove the masking. I could optionally setup each of the parked domains with a dummy page that will automatically forward to the one normally used but I'd rather not have to do that. Any thoughts on how I can accomplish this?
0
Comment
Question by:doby48
[X]
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
2 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 250 total points
ID: 10839814
Masking is achieved using frames, so any frame buster script will do the job.

Stick:
if(top.location != self.location){top.location=self.location;}

in a .js file, then include it on each page with:

<script type="text/javascript" src="yourfile.js"></script>
0
 
LVL 3

Author Comment

by:doby48
ID: 10839872
Thanks, exactly what I was looking for!
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

Most of the sites are being standardized with W3C Web Standards. W3C provides lot of web standard services to the web. They have the web specification, process and documentation for all the web standards. You can apply HTML, CSS and Accessibility st…
I will show you how to create a ASP.NET Captcha control without using any HTTP HANDELRS or what so ever. you can easily plug it into your web pages. For Example a = 2 + 3 (where 2 and 3 are 2 random numbers) Session("Answer") = 5 then we…
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

749 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