Hello,
I've read
https://www.dokuwiki.org/rewrite and
https://www.dokuwiki.org/tips:httpslogin
Individually, each one is working :
- I can set my .htaccess to have nice urls
- I can set my .htaccess to force HTTPS
But when I try putting both the parameters in my .htaccess, everything goes wrong.
I've read a few forum posts about .htaccess issues but haven't seen one having my exact issue.
So on one side I have this for "Nice URL" :
RewriteEngine on
RewriteBase /
RewriteRule ^_media/(.*) lib/exe/fetch.php?media=$1 [QSA,L]
RewriteRule ^_detail/(.*) lib/exe/detail.php?media=$1 [QSA,L]
RewriteRule ^_export/([^/]+)/(.*) doku.php?do=export_$1&id=$2 [QSA,L]
RewriteRule ^$ doku.php [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) doku.php?id=$1 [QSA,L]
RewriteRule ^index.php$ doku.php
And on the other, I have this for forcing HTTPS :
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
How do I have to mix them to have nice urls forced in HTTPS ?
Thank you