Solved

Unmask URL

Posted on 2004-04-15
2
1,052 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
2 Comments
 
LVL 17

Accepted Solution

by:
dorward earned 250 total points
Comment Utility
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
Comment Utility
Thanks, exactly what I was looking for!
0

Featured Post

IT, Stop Being Called Into Every Meeting

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

Suggested Solutions

Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
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…

762 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

6 Experts available now in Live!

Get 1:1 Help Now