kixe Posted April 29, 2015 Posted April 29, 2015 Usually I add the following lines in my htaccess files. Would be nice to have this or something similar in the core packages. Maybe somebody find this useful. # ----------------------------------------------------------------------------------------------- # OPTIONAL: Redirect users to the non 'www.' version of the site # For example: http://www.processwire.com/ would be redirected to https://processwire.com/ # ----------------------------------------------------------------------------------------------- RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] RewriteRule ^(.*)$ http://%1%{REQUEST_URI} [L,R=301] # ----------------------------------------------------------------------------------------------- # OPTIONAL: Force a redirect to SSL # For example: http://processwire.com/ would be redirected to https://processwire.com/ # ----------------------------------------------------------------------------------------------- # RewriteCond %{SERVER_PORT} !^443$ # RewriteRule ^(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R=301] 2
LostKobrakai Posted April 29, 2015 Posted April 29, 2015 Have a look at this: https://github.com/ryancramerdesign/ProcessWire/pull/1128 3
kixe Posted April 30, 2015 Author Posted April 30, 2015 @LostKobrakaithanks for this information. Didn't know about that.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now