# ./public/.htaccess Options -MultiViews DirectoryIndex index.php index.html RewriteEngine On # Allow your IP through — no redirect RewriteCond %{REMOTE_ADDR} ^122\.150\.76\.27$ RewriteRule ^dashboard\.php$ - [L] # Also check X-Forwarded-For if behind a proxy/Cloudflare RewriteCond %{HTTP:X-Forwarded-For} ^122\.150\.76\.27 RewriteRule ^dashboard\.php$ - [L] # Everyone else — redirect to homepage RewriteRule ^dashboard\.php$ https://tasplanning.report/ [R=302,L] # Don’t rewrite real files/dirs RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ - [L] # Internally serve extensionless -> .php RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.+)$ $1.php [L,QSA] # Redirect visible .php/.html to extensionless (no loops) RewriteCond %{THE_REQUEST} \s/+(.+)\.php[\s?] RewriteRule ^ %1 [R=301,L] RewriteCond %{THE_REQUEST} \s/+(.+)\.html[\s?] RewriteRule ^ %1 [R=301,L]