.htaccess: Invalid command ‘SGS’
-
Hi there,
Brief:
– Installed this plugin (for take a look) and broke the access for WP admin (with Auth Error msg. Only accessable from SG’s site.
– I am not an expertProvider:
– Siteground with last PHP/WP versionInstalled sec plugins (using without problem):
– Wordfence
– Webcraftic Hide Login PageHow the problem accured:
Tought the similar function of Hide Login Page plugin although I am not 100% sure (see it below). Did not change wp admin address in SG Security.Soution, deactivate SG Security and reset Webcraftic Hide Login (ie custom login address).
Seems to me these constants added by SG Security in .htaccess caused the issue (since by adding manually to the file resulting the same error above):
# SGS HSTS Header Service
Header set Strict-Transport-Security “max-age=10886400; preload”
# SGS HSTS Header Service END# SGS XSS Header Service
<IfModule mod_headers.c>
# SGS XSS
Header always set X-Content-Type-Options “nosniff”
Header set X-XSS-Protection “1; mode=block”
# SGS XSS END
</IfModule>
# SGS XSS Header Service ENDI DID HAVE ALREADY THESE (similar) COSTANTS (may overlap?)
# X-XSS-Protection
Header set X-XSS-Protection “1; mode=block”# prevent Content Type sniffing
Header set X-Content-Type-Options nosniff`Error log in Site Tools:
2021-12-10 22:27:17 UTC [apache][core:alert] [pid 10488] [client 112.198.97.4:46356] /home/u703-xxxxxx/www/domain.com/public_html/.htaccess: Invalid command ‘SGS’, perhaps misspelled or defined by a module not included in the server configuration, referer: https://www.domain.com/wp-admin/
- The topic ‘.htaccess: Invalid command ‘SGS’’ is closed to new replies.