fixed .htaccess; changed profile.php.txt
This commit is contained in:
parent
54a1dcdeeb
commit
35d69ed037
@ -8,30 +8,26 @@ RewriteRule ^blog/([^/]+)/?$ /blog.php?id=$1 [L,QSA]
|
||||
# -------------------------------------------
|
||||
# Rewrite /sitemap.xml to /blog.php?id=<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
|
||||
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user