diff --git a/.htaccess b/.htaccess index 6e783e20..d8888a8a 100644 --- a/.htaccess +++ b/.htaccess @@ -16,6 +16,7 @@ RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/wiki/index.php [L] +RewriteRule ^wiki-([^/]*)\.php$ /wiki.php?page=$1 [QSA,L] #remove php file extension-e.g. https://example.com/file.php will become https://example.com/file RewriteCond %{REQUEST_FILENAME} !-d diff --git a/header.php b/header.php index 46c01caf..088fe643 100644 --- a/header.php +++ b/header.php @@ -84,17 +84,17 @@ @@ -102,14 +102,14 @@ diff --git a/wiki.php b/wiki.php new file mode 100644 index 00000000..9c4a9954 --- /dev/null +++ b/wiki.php @@ -0,0 +1,392 @@ + + + + + +