diff --git a/VERSION b/VERSION index b5d7271..36f23e1 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.44 \ No newline at end of file +1.0.45 \ No newline at end of file diff --git a/sample.htaccess b/sample.htaccess index 8085932..0fe8d92 100644 --- a/sample.htaccess +++ b/sample.htaccess @@ -1,6 +1,8 @@ - - RewriteEngine On - RewriteBase / - RewriteCond %{REQUEST_FILENAME} !-f - RewriteRule ^(.*)$ index.php?doc=$1 [NC,L,QSA] - + + RewriteEngine On + RewriteBase / + RewriteCond %{REQUEST_URI} \.md$ [NC] + RewriteRule ^.*$ / [R=301,L] + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^(.*)$ index.php?doc=$1 [NC,L,QSA] + diff --git a/setup.php b/setup.php index 747348d..817d655 100644 --- a/setup.php +++ b/setup.php @@ -64,7 +64,7 @@ $htaccess.="\tRewriteEngine On\n"; $htaccess.="\tRewriteBase ".$_SESSION['wikidocs']['setup']['path']."\n"; $htaccess.="\tRewriteCond %{REQUEST_URI} \.md$ [NC]\n"; - $htaccess.="\tRewriteRule ^.*$ / [R=301,L]\n"; + $htaccess.="\tRewriteRule ^.*$ ".$_SESSION['wikidocs']['setup']['path']." [R=301,L]\n"; $htaccess.="\tRewriteCond %{REQUEST_FILENAME} !-f\n"; $htaccess.="\tRewriteRule ^(.*)$ index.php?doc=$1 [NC,L,QSA]\n"; $htaccess.="\n";