How to fix the 403 forbidden error: Difference between revisions
Jump to navigation
Jump to search
How to fix the 403 forbidden error (edit)
Revision as of 10:48, 21 September 2022
, 21 September 2022→Check the syntax of .htaccess
(Created page with " How to fix the 403 forbidden error == Error message == When I tried to browse the website, I met the following message: <pre> Forbidden You don't have permission to access...") |
|||
| Line 36: | Line 36: | ||
Check if the syntax of .htaccess ({{kbd | key=<nowiki>/path/to/website/.htaccess</nowiki>}} ) correct. | Check if the syntax of .htaccess ({{kbd | key=<nowiki>/path/to/website/.htaccess</nowiki>}} ) correct. | ||
Example content of log | |||
<pre> | |||
/path/to/website/.htaccess: Invalid command 'Force', perhaps misspelled or defined by a module not included in the server configuration, referer: http://mywebsite.com.tw/favicon.ico | |||
</pre> | |||
Root cause: the original syntax was written for another version of HTTP server. | |||
=== More detail on HTTP server log == | === More detail on HTTP server log == | ||