Hi
I am quite new to php and am trying to find a script that will automatically change the url on a dynamically generated page from http to https.
For example, I might have a web page called story.php which is basically just a template design and generates its actual content from a MySQL database.
So, any number of pages can be generated:
e.g.
http://www.example.com/story.php?page_select=32&&select=447
http://www.example.com/story.php?page_select=43&&select=449
What I need to happen is for the url of these pages to automatically change to:
https://secure.example.com/story.php?page_select=32&&select=447
https://secure.example.com/story.php?page_select=43&&select=449
I only want pages using story.php to do this, the rest of my site would not need to be secure.
I'm guessing an include or php script in the header of story.php might do the trick rather than something in a .htaccess file? Any ideas would be much appreciated.
Regards
Berryman