- ` containing non-`
- ` elements.
- **Solution:**
- Wrap primary content in `
`. - Ensure ` - ` and `
- ` elements directly.
- Add `role="main"` if semantic `
` is not used. **2B. Harden WordPress endpoints (xmlrpc.php, install.php)** `Security` - **Impact:** Brute-force protection, installation security - **Problem:** Security basics flagged xmlrpc.php accepts POST requests and /wp-admin/install.php is reachable. - **Solution:** Block in .htaccess: ``` Order deny,allow Deny from all Order deny,allow Deny from all ``` **2C. Add baseline security headers (HSTS, X-Content-Type-Options)** `Security` - **Impact:** Transport Security, MIME Sniffing Protection - **Problem:** Security basics verdict is FAILED; HSTS and X-Content-Type-Options are missing despite HTTPS being active. - **Solution:** Add to server configuration (Apache example): ``` Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains" Header always set X-Content-Type-Options "nosniff" ``` **2D. Fix heading hierarchy and add main landmark** `Accessibility` - **Impact:** Screen Reader Navigation, SEO Structure - **Problem:** Heading order skips from h1 to h3; document lacks a `` landmark (4 axe violations total). - **Solution:** - Change the first ` ` after the `
` to `
`. - Wrap the primary content in `
`. - Add a skip-to-content link at the top of the page. **2E. Disable XML-RPC POST requests and block install.php** `Security` - **Impact:** Brute-force Protection, CMS Hardening - **Problem:** WordPress `xmlrpc.php` accepts POST requests (brute-force vector); `/wp-admin/install.php` is reachable. - **Solution:** Add to `.htaccess`: ``` RewriteRule ^wp-admin/install.php - [F,L] ``` **2F. Harden WordPress installation** `Security` - **Impact:** Brute-force protection, info disclosure - **Problem:** xmlrpc.php accepts POST requests (brute-force vector); /wp-admin/install.php is reachable; Server header discloses Apache. - **Solution:** - Block xmlrpc.php in .htaccess or via plugin. - Protect /wp-admin/install.php (return 404/403). - Use a plugin to hide Server header or configure Apache to remove it. **2G. Add missing basic security headers** `Security` - **Impact:** Transport security, MIME sniffing - **Problem:** Security basics verdict FAILED; HSTS and X-Content-Type-Options are missing despite HTTPS being active. - **Solution:** Send from origin (Apache example): ``` Header always set Strict-Transport-Security "max-age=63072000; includeSubDomains" Header always set X-Content-Type-Options "nosniff" ``` **2H. Fix list structure violations** `Accessibility` - **Impact:** Screen reader navigation, WCAG 1.3.1 - **Problem:** axe-core reports 2 serious violations where `deny from all - `/`
- ` elements (e.g., links inside tags).
- **Solution:**
- Ensure `
- ` and `
- ` elements directly. - Move links or tags inside the `
- ` wrapper, not as siblings.
**2I. Fix color contrast and add main landmark** `Accessibility`
- **Impact:** WCAG 1.4.3, 1.3.1, 2.4.1
- **Problem:** 1 serious violation on `.menu-item-75` contrast; missing `main` landmark and skip-to-content link.
- **Solution:**
- Increase contrast ratio on `.menu-item-75` to โฅ4.5:1.
- Wrap main content in `
` tag. - Add `` before navigation. **2J. Correct HTML language and validation errors** `SEO` - **Impact:** Search indexing, Screen reader language detection - **Problem:** HTML `lang="en"` on Estonian content; 10 W3C errors including invalid `script` attributes and `target` on ` `. - **Solution:** - Change `` to ``. - Remove `target` attribute from `
- ` only contain `
- ` contain non-`
- ` elements (e.g., links inside tags).
- **Solution:**
- Ensure `
- ` only contain `
- ` elements directly.
- Add `role="main"` if semantic `