How do I prevent this .htaccess redirect rule in the root from affecting any subdomains?
RewriteOptions inherit
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]
I've tried adding Options -MultiViews +FollowSymLinks
per answer to similar q's to no avail.
I also had partial success with RewriteRule ^([^\.]+)$ https://domain.co.uk/$1.php [NC,L]
but without the correct condition this still didn't work.
Any help would be massively appreciated.