| | |
HTTPS problem
Please support our eCommerce advertiser: Get a Free E-commerce Success Analysis!
Thread Solved |
•
•
Join Date: Feb 2008
Posts: 42
Reputation:
Solved Threads: 0
Hi Everyone.
This may seem a pretty basic question but here goes....
on my domain https:// if you take away the 's' from the http you can still view the secured section, what i need is it to either provide an error or better still make the page redirect to where they are and replace the 's' in the url....if you get what i mean.
Sorry to appear vague ....... any ideas?
The site is in php too if that helps......or not!
Cheers
EMHMK1
This may seem a pretty basic question but here goes....
on my domain https:// if you take away the 's' from the http you can still view the secured section, what i need is it to either provide an error or better still make the page redirect to where they are and replace the 's' in the url....if you get what i mean.
Sorry to appear vague ....... any ideas?
The site is in php too if that helps......or not!
Cheers
EMHMK1
The best thing you can do is force the page to be viewed only by https which is not hard to do and can be done several ways. (BTW, unless you link to the non https version of that page users should never be able to get there in the first place unless they're doing something naughty).
To do it with Apache put this code in a file called .htaccess in the same directory as the file you want to force the http:
If you're using PHP you can put this at the top of the page to accomplish the same thing:
To do it with Apache put this code in a file called .htaccess in the same directory as the file you want to force the http:
Redirect permanent http://www.domain.com/page.php https://www.domain.com/page.php
If you're using PHP you can put this at the top of the page to accomplish the same thing:
php Syntax (Toggle Plain Text)
<?php $https_url = 'https://www.domain.com'; if ( isset( $_SERVER['HTTPS'] ) && $_SERVER['HTTPS'] == 'off' ) { header('location: ' . $https_url); exit; } else if ( !isset( $_SERVER['HTTPS']) && $_SERVER['SERVER_PORT'] == 443 ) { header('location: ' . $https_url); exit; } ?>
John Conde
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
Brainyminds | Merchant Account Services | I Love Code
IT'S HERE: Merchant Accounts 101 Everything you need to know about merchant accounts!
![]() |
Similar Threads
- Odd Page Cannot Be Displayed Problem (All browsers, not just IE) (Windows NT / 2000 / XP)
- My IE6 won't access https secure pages (Web Browsers)
- problem with caller.exe (Viruses, Spyware and other Nasties)
- rundll32.exe problem on shutdown (Viruses, Spyware and other Nasties)
- JoeOneEye- prosearching.com problem (Viruses, Spyware and other Nasties)
- Another problem with BRIDGE.DLL (Viruses, Spyware and other Nasties)
- CommonName big problem (Windows NT / 2000 / XP)
Other Threads in the eCommerce Forum
- Previous Thread: BusyBox Creators Sue Extreme Networks
- Next Thread: Wordpress for ecommerce?
| Thread Tools | Search this Thread |
& acacia access amd amounts blackmarket brick business busybox cards cart cloud club computing copyright credit database debit direct dollar downloads e-comm e-commerce e-tailers earn.tk ebay ebusiness ecommerce economy email facebook fair-use file-sharing finance financialservices giftcards google government gpl help|help|help|help holidays integration intel internet internetcommerce law legal marketing media membership monetization money mortar mortars murdoch music music-industry news online onlinepornography onlineshopping paid pain patent paypal piracy points ppc pram price processors programs restrictions retailstocks senate seo sflc shopping smallbusiness software softwarefreedomlawcenter solutions spammagnet spending strategy streaming symantec technologyspending techspending twitter uk zencarthelp






