Thank you for this great module.

I having trouble securing the user pages. I tried
'User Edit page' => 'user/*', //Secure all User pages. didn't work, then I tried specific pages like this
'User Edit page' => 'user/*/edit/*', //Secure User Edit page. still didn't work. My pathauto sets each user's page like this mysite.com/craig, so user edit page looks like mysite.com/craig/edit

Also my captcha images are not visible on the registration page and some of my other images located in/files. Thanks.

Comments

fehin’s picture

This is currently what my module looks like

function my_ssl_paths_include_ssl_paths()
{
global $user;
$paths = array(
    'User Edit page' => 'user/*/edit/*', //Secure User Edit page.
    'User Orders page' => 'user/*/orders', //Secure User Orders page.
	'User Edit page' => 'user/*/selling/*', //Secure User Selling page.
    'User Orders page' => 'user/*/op_report', //Secure User Ordered Products page.
	'User Orders page' => 'user/*/imce', //Secure User Imce page.
    'All Register pages' => '/register*', //Secure ALL register pages.
    'All Admin pages' => '/admin*', //Secure ALL admin pages.
	
    #'example 1' => '/cart',  //Only secure the /cart and /cart/ page.
    #'example 2' => 'cart',  //Only secure the /cart and /cart/ page.
    #'example 3' => 'cart/',  //Only secure the /cart and /cart/ page.
    #'example 4' => '/cart*/something',  //matches /cartThis/something and /cart/something but NOT thiscart/something etc.
    #'example 5' => '/cart/*/something', //Matches /cart/123/something and cart/this/something, but NOT /cart/something
    #'example 6' => '/cart/something',  //Only secure the /cart/something and /cart/something/ page.
   );
   return $paths;
}
fehin’s picture

Does pathauto affect the links? If I use the pathauto link instead of the generic links, would it work?

fehin’s picture

About the images, they are located in files folder. The link to one of the images not visible on check out page is http://www.mywebsite.com/files/Facebookb.png. Does this link need https too? How do I make work? Thanks.

*Edit*
I figured out the image issue. I was using full path for the link in my code. Once I changed it to something like /files/Facebookb.png, it worked. Now I just have figure out how to get the user pages to work. Hope someone can help.

crystaldawn’s picture

Status: Active » Closed (fixed)