diff --git a/.htaccess b/.htaccess index af01f45..d691e98 100644 --- a/.htaccess +++ b/.htaccess @@ -1,20 +1,21 @@ RewriteEngine On -# top level php requests are converted to their html counterpart for backward compatability -# but only if the php file does not exist anymore -RewriteCond %{THE_REQUEST} /(.+)\.php !-f +# top level php requests are converted to their html counterpart for backward +# compatability but only if the php file does not exist anymore +RewriteCond %{REQUEST_URI} !-f +RewriteCond %{THE_REQUEST} /(.+)\.php RewriteRule ^ /%1.html [L,R=301] # in case request is for a directory, open the index.html RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.+)/$ $1/index.html [NC,L] # if the file does not exist, append .html RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.html [NC,L] # Plugin information is taken from the KMyMoney 5.x online documentation Redirect /plugins.html https://docs.kde.org/stable5/en/extragear-office/kmymoney/details.settings.plugins.html # this is the second step in converting release-notes.php -> changelog.html Redirect /release-notes.html /changelog.html