?
Solved

Unmask URL

Posted on 2004-04-15
2
Medium Priority
?
1,076 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 1000 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

Want to be a Web Developer? Get Certified Today!

Enroll in the Certified Web Development Professional course package to learn HTML, Javascript, and PHP. Build a solid foundation to work toward your dream job!

Question has a verified solution.

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

This article covers the basics of the Sass, which is a CSS extension language. You will learn about variables, mixins, and nesting.
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.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.
Suggested Courses

752 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