Forum Moderators: coopster

Message Too Old, No Replies

How to cloak link?

cloak links

         

zoffmann

8:03 pm on Mar 29, 2007 (gmt 0)

10+ Year Member



Hello,

I have done redirection from www.example.com/forum to

www.example.com/forum/mysite and it works.

When I click on www.example.com/forum I want that address is still in

address field but I am actually on www.example.com/forum/mysite.

In the other words I would like to hide the second address and only show the first in the address field of the browser.

My question is:

Is there some simple way to cloak addresses in php?

Thanks in advance

[edited by: eelixduppy at 8:06 pm (utc) on Mar. 29, 2007]

[edited by: dreamcatcher at 7:23 am (utc) on Mar. 30, 2007]
[edit reason] use example.com, please [/edit]

eelixduppy

8:30 pm on Mar 29, 2007 (gmt 0)



Welcome to WebmasterWorld, zoffmann

PHP doesn't really have the capabilities to do something like this. You can, however, set up a frame [w3.org] which will produce the desired effect. This is probably your best bet.

mcavic

10:45 pm on Mar 29, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



This is a bad idea from a user perspective, because if you use frames, users won't be able to bookmark individual pages, or send links to each other. In both cases, they will only get a link to the forum home.

eelixduppy

3:58 am on Mar 30, 2007 (gmt 0)



That is very true, mcavic. zoffmann, is there a reason why you cannot host the forum on the server that you already have? It shouldn't be too hard to transfer the database info. That would be the best solution.

zoffmann

8:45 am on Mar 30, 2007 (gmt 0)

10+ Year Member



I have tried the frames but with no success :((

To try on the same server would be great, but I didn't have a time and knowledge to setup the required software and database on the same server.

But the people from my webhotell's support are still saying that I should use php for this purpose. (Now I have two opposite piece of information at the same time.)

best regards
zoffmann