Solved

Unmask URL

Posted on 2004-04-15
2
1,061 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
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

What is Node.js? Node.js is a server side scripting language much like PHP or ASP but is used to implement the complete package of HTTP webserver and application framework. The difference is that Node.js’s execution engine is asynchronous and event…
Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

813 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

12 Experts available now in Live!

Get 1:1 Help Now