.htaccess WordPress rewrite doesn't work over SSL

I'm hosting a WordPress site on my Linode and using the .htaccess for WP "pretty" permalinks (rewrite). This works just fine delivered http. However, when https is called, the home page loads fine (because it's set as a static page), but all the other pages fail. I get a "file not found" error in my error.log

I know it's an .htaccess problem because if I turn permalinks off, SSL works fine.

Here is my .htaccess:

BEGIN WordPress

RewriteEngine On

RewriteBase /

RewriteRule ^index.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

Options +FollowSymLinks +SymLinksIfOwnerMatch

END WordPress

And here is the error.log for that site:

[Wed Jan 26 20:51:15 2011] [error] [client 76.0.5.118] File does not exist: /var/www/products-page, referer: https://www.holosnetwork.com/

[Wed Jan 26 20:51:16 2011] [error] [client 76.0.5.118] File does not exist: /var/www/favicon.ico

It's like WordPress wasn't even called for that page (which further solidifies the htaccess thing) because "products-page" is a WordPress page, not a file.

Please advise!

2 Replies

It's probably not an .htaccess problem, unless you put something else in there. Either something is wrong with your Virtual Host configuration, or WordPress hates SSL as usual.

Please post the contents of your Virtual Host configuration file(s).

Also, if you're trying to secure the login and admin areas, see http://codex.wordpress.org/AdministrationOverSSL

This, btw, is my only domain hosted on this server.

My first post contained the entire .htaccess so no, I haven't added anything else.

And I know WP hates SSL (which drives me nuts, I can't believe they don't have better support at this point) but I have used this method before for other WP sites. Basically it's a wp-config.php change that changes the site url based upon request. And it appears to be working properly because going to the home page successfully delivers over https. It has something to do with the static home page set as the root level.

Anyway, here's my vhost file

ServerAdmin rchaider@gmail.com

ServerName holosnetwork.com

ServerAlias www.holosnetwork.com

DocumentRoot /var/www/

ErrorLog /var/www/logs/error.log

CustomLog /var/www/logs/access.log combined

SSLEngine On

SSLCertificateFile

SSLCertificateKeyFile *

SSLCertificateChainFile *

ServerAdmin rchaider@gmail.com

ServerName holosnetwork.com

ServerAlias www.holosnetwork.com

DocumentRoot /var/www/

ErrorLog /var/www/logs/error.log

CustomLog /var/www/logs/access.log combined

allow from all

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct