Hello,

I have set up ssl on my local version of apache for testing and created a home-made test ssl certificate. I should also mention that I'm using clean url successfully for the website when using the http://. However, with clean url turned on, I cannot enable secure pages, and only the homepage loads properly when using https:// --

On the other hand, if I disable clean URL, all the pages work fine with https://localhost/?q=mypage and it seems to be properly encrypted.
If secure pages is on, then I cannot enable clean urls anymore. But if I disable secure pages, then I can turn on clean urls.

For many reasons, one of them being that the site is pre-existing with clean urls, I cannot disable the clean url. I've read lots of threads about this and tried different solutions but nothing seems to be the trick.

The latest I tried was to add this to the securepages_match($path) function:

/* REMOVED 
 * return !($secure xor $result) ? 1 : 0;
    */
    $result = preg_match($regexp, $path);
    if (function_exists('drupal_get_path_alias')) {
	  $path_alias = drupal_get_path_alias($path);
	  $result |= preg_match($regexp, $path_alias);
    }
	return !($secure xor $result) ? 1 : 0;

Not sure if this is useful, but here is my .htaccess rewrite:

<IfModule mod_rewrite.c>

  RewriteEngine on


  RewriteCond %{REQUEST_FILENAME} !-f

  RewriteCond %{REQUEST_FILENAME} !-d

  RewriteCond %{REQUEST_URI} !=/favicon.ico

  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

</IfModule>

which is nothing out of the ordinary.

Thanks for your help!

Comments

grendzy’s picture

Status: Active » Closed (cannot reproduce)

Feel free to re-open if it can be reproduced on a clean install. It sounds like a webserver issue (maybe your Apache SSL config doesn't have AllowOverride All enabled).