Apache Error: AH00526 Syntax Error in .htaccess
Syntax.
AH00526 means Apache found a syntax error in a configuration file, usually .htaccess. Apache refuses to serve the site until the bad line is fixed, so you see a 500 error.
Step 1: Open the error log

Your hosting panel's Errors or Logs section will show a line like AH00526: Syntax error on line 12 of /home/user/public_html/.htaccess. The line number is the clue.
Step 2: Open the file at that line

Edit .htaccess in File Manager and go to the line number given. Check that line and the one above it.
Step 3: Look for the usual causes

A misspelled directive, a missing space, an unclosed <IfModule> or <Files> block, or quotes that were pasted as curly quotes.
Step 4: Check the directive is allowed

The message may say a directive is not allowed here. Some hosts forbid certain options such as Options lines. Remove or ask your host.
Step 5: Fix or comment out

Add # at the start of the faulty line to disable it, save and reload.
Step 6: Restore if unsure

Rename the file to .htaccess-old and rebuild it: in WordPress, Settings, Permalinks, Save.
Step 7: Retest the whole site

Check the home page, a few inner pages and the admin area.
Still stuck?
If these steps do not solve it, we fix it for you for a flat $99. Full refund if we do not solve it within 7 days.
Related guides
- Writing Clear Error Reports: Screenshots, URLs and Steps
- WordPress Tag and Date Archives Duplicate Content: Settings
- WordPress Permalinks Change: Redirect Old URLs and Avoid 404s
- Error Establishing a Database Connection in WordPress: Full Checklist