diff --git a/www/.htaccess b/www/.htaccess index 312af29..199e786 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -8,30 +8,26 @@ RewriteRule ^blog/([^/]+)/?$ /blog.php?id=$1 [L,QSA] # ------------------------------------------- # Rewrite /sitemap.xml to /blog.php?id= # ------------------------------------------- -RewriteRule ^sitemap\.xml$ /sitemap.php - - +RewriteRule ^sitemap\.xml$ /sitemap.php [L] # ------------------------------------------- # Rewrite some dummy urls to some funny af # shit # ------------------------------------------- -RewriteRule ^(wp-admin|wp-login|cms-admin).*$ /dummy/wp-login.html -RewriteRule ^.*?wp-config\.php$ /dummy/wp-config.php.txt +RewriteRule ^(wp\-admin|wp\-login|cms\-admin).*$ /dummy/wp-login.html [L] +RewriteRule ^.*?wp-config\.php$ /dummy/wp-config.php.txt [L] +RewriteRule ^.*?profile\.php$ /dummy/profile.php.txt [L] +RewriteRule ^.*?phpinfo\.php$ /dummy/phpinfo.php.html [L] +RewriteRule ^\..*?\.json$ /dummy/sftp-login.json [L] +RewriteRule ^.*?\.env$ /dummy/.env [L] -RewriteRule ^.*?profile\.php$ /dummy/profile.php.txt -RewriteRule ^.*?phpinfo\.php$ /dummy/phpinfo.php.html - -RewriteRule ^\..*?\.json$ /dummy/sftp-login.json -RewriteRule ^.*?\.env$ /dummy/.env - -RewriteRule ^(typo|admin|login|dashboard).*$ /dummy/kaffee.php +RewriteRule ^(typo|admin|login|dashboard).*$ /dummy/kaffee.php [L] # ---------------------------------------------------- # Rewrite /lib/* or /blog/* to /error.php?code=404 # with 404 response code (internal rewriting) # ---------------------------------------------------- -RewriteCond %{REQUEST_URI} ^/(lib|blog|dummy)(/.*)?$ +RewriteCond %{REQUEST_URI} ^/(lib|blog)(/.*)?$ RewriteRule ^ - [R=404,L] ErrorDocument 404 /error.php?code=404 diff --git a/www/dummy/profile.php.txt b/www/dummy/profile.php.txt index cd1623a..a3a450c 100644 --- a/www/dummy/profile.php.txt +++ b/www/dummy/profile.php.txt @@ -7,7 +7,7 @@ if (!$user) { throw new Exception("Profile not found."); } -// 😢 Oops... Looks like profile.php forgot to profile itself. +// :( Oops... Looks like profile.php forgot to profile itself. // Maybe it went out to find itself. // Or maybe it was never real to begin with.