https www redirect and pretty-urls
Permalink
Does anyone have experience with the setup of c5.6 with https and redirect to www (and pretty urls) ? Added this http://legacy-documentation.concrete5.org/tutorials/force-https-for... and www redirect
I don't know if I'm experiencing a strange problem or I'm missing something.
All the http non-www domain urls are redirected to the correct https www domain urls.
But when I try to access https :// domain.com it's not redirected.
Update: the server certificate is only for the www domain and not for subdomains or * (wildcard). Probably the browser catches the request before htaccess is reached. (?)
Concrete5.6.3.2
gr c5dragon
.htaccess file
And in my site.php
I don't know if I'm experiencing a strange problem or I'm missing something.
All the http non-www domain urls are redirected to the correct https www domain urls.
But when I try to access https :// domain.com it's not redirected.
Update: the server certificate is only for the www domain and not for subdomains or * (wildcard). Probably the browser catches the request before htaccess is reached. (?)
Concrete5.6.3.2
gr c5dragon
.htaccess file
# -- concrete5 urls start -- <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / # Redirect to www. RewriteCond %{HTTP_HOST} ^domain.com$ RewriteRule (.*) https://www.domain.com/$1 [R=301,L] # Force https. RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] # Pretty urls RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME}/index.html !-f RewriteCond %{REQUEST_FILENAME}/index.php !-f RewriteRule . index.php [L]
Viewing 15 lines of 17 lines. View entire code block.
And in my site.php
These are the rules I'm using, maybe it helps: