Am 24.12.2017 um 08:16 schrieb Christian Ridderström:

> IIRC, rewrites isn't done by .htaccess by the main Apache configuration files under /etc/httpd/.

OK. I am a beginner with these things. I found the solution with .htaccess by googling and it works.

It should work if you replace in www.lyx.org.conf

> RewriteEngine On
> RewriteLog /var/log/httpd/lyx.org_rewrite.log
> RewriteLogLevel 1
> #RewriteCond %{HTTP_POST} ^lyx\.org.*
> RewriteRule ^/(.*) http://www.lyx.org/$1 [L,R]

with

RewriteEngine On
RewriteLog /var/log/httpd/lyx.org_rewrite.log
RewriteLogLevel 1
RewriteCond %{HTTP_POST} ^lyx\.org [NC]
RewriteCond %{SERVER_PORT} 80
RewriteRule ^/(.*) https://www.lyx.org/$1 [L,R]


For a Wordpress page the solution was even simpler: in the dashboards one simply uses https:// for the location of Wordpress.

Since lyx.org is based of PmWiki maybe the relocation to https can be done there too by a setting within PmWiki (similar to the Wordpress solution)?

> Maybe we should ask on the users' list if there's anyone there with experience with Apache configuration files and rewrite?

Good idea.

thanks and regards
Uwe


Reply via email to