Hi there,
I am configuing my site (www.johnmen.com) with both HTTP and HTTPS enabled, so that people can browse my site via either protocols. I first encountered the issue there was mentioned at
http://modxcms.com/forums/index.php/topic,38469.0.html where OpenGeek provided a solution. In short that issue was that when browsing
https://www.johnmen.com, only the first page is at HTTPS, all the wayfinder menu linkes were pointing to HTTP links instead of HTTPS. OpenGeek’s solution did the trick to ensure all subseqent links are prefixed with HTTPS.
However, now I am facing another issue. When browsing my site via HTTPS, only the home page works. All the subseqent links (prefixed with HTTPS) are broken, server returned HTTP error 404 file not found. If I turned off the friendly URL it will then work fine. In other words, only the
https://www.johnmen.com works, any links to
https://www.johnmen.com/something is broken.
Can anyone shed some light on fixing that?
My site’s configuration:
OS:
CentOS 5.3, self-hosted at www.johnmen.com, not always up
MODX:
Evo 1.0.2
Friendly URL is turned on with mod_rewrite’s help, here is my virtual host directives in httpd.conf:
<VirtualHost *:80>
DocumentRoot "/MODx1"
<Directory "/MODx1">
allow from all
Options +Indexes
# For full documentation and other suggested options, please see
# http://svn.modxcms.com/docs/display/MODx096/Friendly+URL+Solutions
# including for unexpected logouts in multi-server/cloud environments
Options +FollowSymlinks
RewriteEngine On
RewriteBase /
# Fix Apache internal dummy connections from breaking [(site_url)] cache
RewriteCond %{HTTP_USER_AGENT} ^.*internal\ dummy\ connection.*$ [NC]
RewriteRule .* - [F,L]
# Rewrite domain.com -> www.domain.com -- used with SEO Strict URLs plugin
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.johnmen\.com [NC]
RewriteRule (.*) http://www.johnmen.com/$1 [R=301,L]
# Exclude /assets and /manager directories from rewrite rules
RewriteRule ^(manager|assets) - [L]
# For Friendly URLs
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
# Reduce server overhead by enabling output compression if supported.
php_flag zlib.output_compression On
php_value zlib.output_compression_level 5
</Directory>
</VirtualHost>
Thanks!
Johnmen