I have redirected from http to https, and has stopped working url without https://www, discussing and redirecting.
When I enter redirect - https://www.example.com ... it's okay, but when I enter www.example.com or example.com, it writes an error - Invalid title - The requested page title contains invalid characters: "%C3".
This is just the case for side pages (e.g. - discussion, redirect, history ...)
Will anyone advise me? Where is the problem?
My htaccess
RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://www.example.com%{REQUEST_URI} [L,R=301,QSA] RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
My LocalSettings:
$wgScriptPath = ""; $wgScriptExtension = ".php"; $wgArticlePath = "/wiki/$1"; $wgUsePathInfo = true; ## The protocol and server name to use in fully-qualified URLs $wgServer = "https://www.example.com"; ## The URL path to static resources (images, scripts, etc.) $wgResourceBasePath = $wgScriptPath;