Solved

How do I mask a url?

Posted on 2013-12-18
4
367 Views
Last Modified: 2013-12-24
We have a few domains that we redirect to our homepage.  When someone enters one of the domains in their browser (ex www.redirect1.com) it redirects to our web page (www.ourwebpage.com) and shows the redirected url as the name of the page.  We would like the redirected urls all show the actual name of the page instead (www.ourwebpage.com).  Is this something I need to do with our domain registrar or is it a coding thing for the web page?

Thanks!
0
Comment
Question by:jmerulla
  • 2
4 Comments
 
LVL 59

Expert Comment

by:Kevin Cross
ID: 39726689
Hi.

If I understand correctly, it sounds like you currently point your different domains to same IP address.  Therefore, the domains mask the fact that you are on the same web site.  Therefore, you need to make a change to the webpages to check if the current URL matches the one you want to display.  If it does not, the site should perform a redirect.  Another way to do this is to configure each domain to its own website.  For the domains you want to redirect, set the redirect option in your web server.

I hope that helps.
0
 
LVL 52

Expert Comment

by:Scott Fell, EE MVE
ID: 39726730
It sounds like you are using godaddy's redirection and masking.  The way that works is it creates an iFrame where the new domain is www.ourwebpage.com that has a frame with www.redirect1.com's content.

If you have a link to www.redirect1.com/page3.html but you always see www.ourwebpage.com, this is the most likely case.

What you need to to instead is redirect the domain on your server with a 301 redirect.  Are you using windows or linux?  Is your hosting with godaddy? or where?
0
 
LVL 2

Author Comment

by:jmerulla
ID: 39727312
Hi,

We have our actual website (www.ourwebpage.com) and have other domains redirect to it via ip address through our domain registrar.  So when you enter www.redirect.com, it goes to the webpage but does not show www.ourwebpage.com in the url it shows www.redirect.com.  Management wants the url that is entered to be the page that shows up after the redirection.  The web page is hosted by HostMySite.com, not GoDaddy if that helps.  Do I need to update info with my domain registrar?  Does the hosting company need to do the fix on the backend?  Does the designed of the page need to update the code?

Thanks!
0
 
LVL 52

Accepted Solution

by:
Scott Fell,  EE MVE earned 500 total points
ID: 39727383
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Join & Write a Comment

Suggested Solutions

Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

708 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

13 Experts available now in Live!

Get 1:1 Help Now