Hi everyone.
I am trying to secure my manager using SSL.
I don’t want to use SSL for the whole website ( not yet ).
I have tired the code on this page with no luck:
https://rtfm.modx.com/revolution/2.x/administering-your-site/security/hardening-modx-revolution
RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://yoursite.com/manager/$1
Any suggestion?
Thanks
.htaccess in base folder looks like this:
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^www\.example-domain-please-change\.com [NC]
RewriteRule (.*) http://www.example-domain-please-change.com/$1 [R=301,L]
Webdesigner and musician.
And also, if I want to secure the entire website.
Let’s say I want to move from:
http://www.mywebsite.com => https://www.mywebsite.com
How can I correctly alter my .htaccess ( optimized for search engine with 301 redirect ) ?
Is there any changes to make to the manager and config files?
Thanks
Webdesigner and musician.
@Steeve
Thanks for your answer.
Well I've tried that, but even after clearing the cache, it's still redirecting to the http://
I guess modx stores the "base url" somewhere.
Did you install modx straight to https ? Or did you switch from http to https ?
Thanks for your help anyway.
Webdesigner and musician.
Hi.
Yes I checked the file, I didn't find an absolute path but just the domain name.
Kinda weird.
Thanks anyway
Webdesigner and musician.
Quote from: Steeve at Aug 22, 2016, 03:30 AMQuote from: carlo_13 at Aug 22, 2016, 03:25 AMYes I checked the file, I didn't find an absolute path but just the domain name.
Is there WWW.website.tld ?
Yes there is. Is this the issue ?
Webdesigner and musician.
Quote from: Steeve at Aug 22, 2016, 03:46 AMQuote from: carlo_13 at Aug 22, 2016, 03:25 AMYes there is. Is this the issue ?
Yes! Sorry but i can't help you more.
For me it was really simple and quick, maybe i forgot something.
No worries, and thanks for helping!
By the way, what should I do if I only want https:// for the manager ?
Webdesigner and musician.