Hi all, didn't know into which other forum this should be posted, none of them seemed obvious, so I've placed it here.
Here's my problem:
I've got a domain (www.example.com) registered with a host, let's call them 'smallhost', and I've got a website with my custom admin section there.
Recently a colleague built a fancy front end and placed it on our own web server. We've ensured that the front-end encapsulates the custom admin area with an iframe (seemed like the best idea at the time). The original homepage on 'smallhost' contains a header(Location:http//xxx.xxx.xx.xxx) statement (where x = our webserver IP address).
Now my colleague is a bit fussy (and rightly so) and doesn't like the website showing the IP address (he wants the www.example.com) to show in the address bar.
I've dropped all files except the homepage (now the redirect page) in the root folder (public html) but have all the admin files under subfolders.
Does anyone know of a painless way to get root urls of the hosted site to point to the local webserver (showing www.example.com) while allowing subfolder (custom admin area) access via iframe?
For example, if somebody entered www.example.com/map.php, they'd be redirected to the local webserver, but if they entered www.example.com/admin/index.php, they'd still come through to the hosted site.
I'd appreciate any help on this matter, I had a problem explaining myself to the host - she didn't or couldn't understand what I was getting at.