hello there.

for the first time i'm using https to post a form with credit card details. So i've placed the form in /https/

However the whole site uses absolute paths for PHP like;
include_once($_SERVER['DOCUMENT_ROOT']."/scripts/php/general.php");

and relative href paths in the main navigation like /about/contact/ which obviously wont get files from the /httpdocs/ directory

so all the corresponding links don't work! And i have to create a new set of files just to be included with the one form.

Seems really messy and was wondering if there's an easier way to post the form on https without having to nearly duplicate the site and all its files in the /https/ directory?

I've looked at mod_rewrite but i can't seem to find an example that works. They all seem to just push the request to the https url.


any pointers appreciated! Dan.