.htaccess WordPress rewrite doesn't work over SSL
I know it's an .htaccess problem because if I turn permalinks off, SSL works fine.
Here is my .htaccess:
BEGIN WordPress
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:
[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
Please post the contents of your Virtual Host configuration file(s).
Also, if you're trying to secure the login and admin areas, see
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
ServerName holosnetwork.com
ServerAlias
DocumentRoot /var/www/
ErrorLog /var/www/logs/error.log
CustomLog /var/www/logs/access.log combined
SSLCertificateFile
SSLCertificateKeyFile *
SSLCertificateChainFile *
ServerAdmin
ServerName holosnetwork.com
ServerAlias
DocumentRoot /var/www/
ErrorLog /var/www/logs/error.log
CustomLog /var/www/logs/access.log combined