yanith Posted December 13, 2011 Share Posted December 13, 2011 Hello guys another difficult form case (for me) I have this super long form that pulls different files depending on what you select. The form works perfectly fine right now. the problem is that now the client need to run the form with a SSL certificate due to gov regulations. we are hosting all the files in the same folder for the secure and unsecure site and the certificate works fine. however when I run the form with the https:// address google chrome tells me that parts of the form are unsecured. I was reading something about the images have to be on a relative path using img scr="../images/path/file.ext" instead of just img scr="images/path/file.ext". I made that change and it didnt solve the problem. I changed all the links to " ../ " and didn't solve the problem. I have added rules to the .htaccess file RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^contact https://www.example.net/new-service.php [R=301,L] RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} somefolder RewriteRule ^(.*)$ https://www.example.net/inc/$1 [R,L] And even changed all the links in the form to absolute paths and nothing works. does anyone know how to force the form to work on SSL or troubleshoot SSL certificate errors to point me in the right direction thanks guys i appreciate your help and advice Quote Link to comment https://forums.phpfreaks.com/topic/253100-94-files-php-form-using-ssl-certificate/ Share on other sites More sharing options...
Adam Posted December 13, 2011 Share Posted December 13, 2011 It's not just images, it's any external resources the page needs; JS, CSS, favicon, etc. Quote Link to comment https://forums.phpfreaks.com/topic/253100-94-files-php-form-using-ssl-certificate/#findComment-1297549 Share on other sites More sharing options...
yanith Posted December 13, 2011 Author Share Posted December 13, 2011 yeah and i checked all the links and change them to absolute paths, but it didn't work as soon as i changed the paths, the form stopped working. Quote Link to comment https://forums.phpfreaks.com/topic/253100-94-files-php-form-using-ssl-certificate/#findComment-1297566 Share on other sites More sharing options...
yanith Posted December 15, 2011 Author Share Posted December 15, 2011 BUMP Does anyone know an easier trick to use relative links and force the urls to be secure? this form is driving me crazy, every time i update the files and add the full path, the form breaks and doesn't display at all Quote Link to comment https://forums.phpfreaks.com/topic/253100-94-files-php-form-using-ssl-certificate/#findComment-1298165 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.