FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Changing Mask URL





Sparda
Hello,

I recently registered for a (.com) domain and setup a forum on a sub domain of my domain. I have several web hosts due to certain php/mysql versions not capable with my forum. Anyways, my sub domain is masking another host basically. My goal is to mask the url, but I also want the php page (index.php) on my mask sub domain to show the ending url of the masked website. Below is my Frame code for masking the forum:

Code:
<frameset>
<head>
<title>Example Forums</title>
</head>
<frame src="http://34852.webhost.com/Forums/">
</frameset>




Example of Masking and Masked:

Masking Site Sub Domain: http://forums.example.com/

Masked Site: http://34852.webhost.com/
(Forum)

Forums have many pages, such pages like this one:

http://34852.webhost.com/viewtopic.php?=837518

I want my masking URL to read clicked links and also interpret an entered URL to go to the specific masked URL.

Another Example:

User has bookmarked page http://forums.example.com/index.php?=viewtopic.php?=837518 and submits the URL into the browser. I would like the (index.php) to take 'viewtopic.php?=837518' and add that to the Frame src. Also, I would like all clicked links in the forum to change the masking URL to end with the ending URL of the masked website so the page may be bookmarked for later. Any ideas?

~Any code suggestions or examples greatly appreciated, thanks!
Fire Boar
Why not simply add NS records instead? That way there's no need for frames: you can use the domain directly. Your host should have provided you with the NS records (usually ns1.yourhost.com and ns2.yourhost.com), and your domain provider should provide a space to put your NS records.
Sparda
I do not know why I did not think of that in the first place. I had a sub domain registered under another host at one point, but I had to switch hosting services. Thanks alot for the suggestion.
Related topics
gmail drive
25 short cuts in Windows Xp
Google and Domains: help
Free downloadable ebooks
G K Chesterton
changing the url
Need frame!!!
Lookig for link exchange Punk Music, rock, HC and related
I am trying to build a contact form using php and flash
URL Cloaking / mod_rewrite advice needed
changing default home directory
How can i add a Top level Domain name here
changes to directory listing
Daily Song thread!
Reply to topic    Frihost Forum Index -> Scripting -> Php and MySQL

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.