PDA

View Full Version : Redirect question


JDiel
07-23-2006, 10:03 AM
Hey everybody,

When I have a domain called example.com wich is want to redirect to http://www.thisisanexample.com/homepage/bla/ I know this is possible and know how to do this.

But what happends when ppl go to www.example.com, the URL shows "http://www.thisisanexample.com/homepage/bla/" instead of "www.example.com" how can I force this?

Thanks in advance,

Regards, Jeroen.

edzelf
07-24-2006, 02:32 AM
Jeroen,

You have to make "frame-based forwarding" for this domain. For this purpose I've made a script that is called for all domainnames that have DNS-records, but are not hosted on your server. The script looks up the domainname in a configuration file. If the domain is in the configuration it will display a frame filled with the target URL. If the domain is not not in the configuration, it will present a standard "Under construction" page.
This method is sufficient in most cases, although "frame-based forwarding" will not work correctly for all URLs.

JDiel
07-24-2006, 03:16 AM
Thanks,

The problem is fixed now, I've goten a link from DA support where I could download a plugin for things like this :)

The link is: http://www.directadmin.com/forum/showthread.php?s=&threadid=9756&highlight=iframe+redirect

Regards, Jeroen.