Current location: Hot Scripts Forums » Programming Languages » PHP » Uncloaking URLs


Uncloaking URLs

Reply
  #1 (permalink)  
Old 03-24-04, 03:27 PM
gorrilla gorrilla is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Uncloaking URLs

Is there some way that I can uncloak an url? If, for example, I have a domain that redirects, www.redirect.com, to another site, www.mysite.com/myaccount, but I want the www.mysite.com/myaccount to show up in the address bar after reaching www.redirect.com, how would I do that?

Thanks in advance,

g0rr
www.teamrepo.net
Reply With Quote
  #2 (permalink)  
Old 03-24-04, 03:36 PM
Sargant Sargant is offline
Newbie Coder
 
Join Date: Mar 2004
Location: Wales
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Some domain-only hosting options give you the choice of a redirect or masked URL (e.g. using a single, full size frame).

If you can't change that setting to the former, try using javascript:
Code:
if (top.location != location) {
  top.location.href = document.location.href ;
}
__________________
My Website: Sargant.Com
Noisebox, a simple but powerful shoutbox script
Reply With Quote
  #3 (permalink)  
Old 03-24-04, 03:59 PM
gorrilla gorrilla is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
unfortunately my domain host doesn't offer that option. :\

for the java script...do i just paste that code somewhere on my index.php or do i ahve to replace a variable (like location)?

thx for yur help
Reply With Quote
  #4 (permalink)  
Old 03-24-04, 04:05 PM
Sargant Sargant is offline
Newbie Coder
 
Join Date: Mar 2004
Location: Wales
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Stick it between <script> tags in the<head> part of your HTML
__________________
My Website: Sargant.Com
Noisebox, a simple but powerful shoutbox script
Reply With Quote
  #5 (permalink)  
Old 03-24-04, 04:27 PM
gorrilla gorrilla is offline
Newbie Coder
 
Join Date: Jan 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Oh nice! It works! Thanks for your help

www.teamrepo.net if you want to check it out.

Later and thx again!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
List of urls with ASP Naz ASP 8 02-12-04 02:28 PM
friendly urls? conv fred.asp?id=100 into fred,100.htm trooperbill ASP 3 10-20-03 02:59 AM
dynamic url's in xhtml pages? tom HTML/XHTML/XML 4 09-26-03 05:11 PM
Trouble with parameter passing in URLs and str_replace crookyboy PHP 2 09-16-03 05:30 AM
Search Engine Friendly URLs Naz PHP 2 09-15-03 05:57 AM


All times are GMT -5. The time now is 10:21 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.