How to mask a URL

lakbaytaodev's picture

They have: 5 posts

Joined: Jan 2010

Greetings!

I am just a lonely Linux System Administrator and definitely not a webmaster. But for some reason I was given on this kind of task. I've been searching on Google for the past few days to address this problem on masking a url. Usually, I get suggestions to do it like mod_rewrite, frameset and iframes. I already tested it all but the url just freezes.

But what we want to achieved is to have a mask url that changed its link. As an example, for a mask url like www.example.com when you click the menu or any other links its just freezes on www.example.com. But what we want is when you click on "Contact Us", the url now then becomes www.example.com/contact_us.php.

Is this possible? I really and badly need your help. Thanks a million in advance.

Tata Dano
Linux Registered User #383849
http://SocialSAM.com

They have: 1 posts

Joined: Jan 2010

Hello,

Use the following code :

?a href='www.example.com/contact_us.php'>Contact Us ?/a>

please use "<" in place of "?"

JeevesBond's picture

He has: 3,956 posts

Joined: Jun 2002

Not sure if you're still around OP, but I'm having trouble understanding what you're trying to do. Would you be able to explain exactly what you're trying to achieve?

Also, and this is for Steve, you can add code to your post using <code> tags. So, I think you meant:

<a href="http://www.example.com/contact_us.php">Contact Us</a>

Not sure that's what the original poster is asking for though.

Welcome to the forums guys, glad to have you both here. Smiling

a Padded Cell our articles site!

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Sounds like he just wants the URL to show as example.com regardless of what page you're on, except for the contact us page, where he wants to show the actual file name. Not sure why you would want to do this, and it sounds like it would be a problem for search engines.

lakbaytaodev's picture

They have: 5 posts

Joined: Jan 2010

Thanks for your replies. "Contact Us" is just an example..but what we really want is that links on the menu will really shows up and all the other links. Using iframes or frameset would only stick to just one url..it freezes. What I mean is, the mask url will really behave as the original url.

Hope that helps.

Tata Dano
Linux Registered User #383849
http://SocialSAM.com

lakbaytaodev's picture

They have: 5 posts

Joined: Jan 2010

As follow up,

original site: jamming.com
masked url: musikero.com

so, when clicking on the orig site: jamming.com/register.php, jamming.com/about_us.php, jamming.com/join_event.php

On the mask url, that should also be: musikero.com/register.php, musikero.com/about_us.php, musikero.com/join_event.php

This is what we want to achieved.
___________________________

What we have right now:

orig site: jamming.com/register.php, jamming.com/about_us.php, jamming.com/join_event.php
mask site: musikero.com (its just freeze and nothing happen when clicking on the pages)

Kindly help me out guys....

Tata Dano
Linux Registered User #383849
http://SocialSAM.com

lakbaytaodev's picture

They have: 5 posts

Joined: Jan 2010

For follow up again:

I came across with php+curl and it suggest that it can solved my problem...but since I am not a programmer I still don't have any clue on this one.

Please help. Thanks.

Tata Dano
Linux Registered User #383849
http://SocialSAM.com

They have: 1 posts

Joined: Feb 2010

This happens automatically if you "park" your domain on the majority of web hosting control panels.

I will state, this is not clever, google can spot duplicate content, and it tends to favour displaying the original site / domain, the others might not even get indexed or will get dropped from search results as I understand it.

Google doesn't like duplicate content. Google it Sticking out tongue

Or read this: http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=66359

I was using 2 domains for a single site for 5 years, google had indexed various pages at both domains, I changed over (Which I felt was risky as we were page 1 already) to a redirect, and choose to advertise a primary domain, now we're no.1 ranked.

lakbaytaodev's picture

They have: 5 posts

Joined: Jan 2010

Thank you so much for the info. We will definitely consider this one to maximize results.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.