.htaccess
An Apache configuration file at the WordPress root that controls URL rewrites and many request rules.
Reviewed by Ali Yasin Jatoi · Updated
.htaccess holds WordPress permalink rewrites, security headers, redirects, and caching rules. WordPress rewrites it on permalink save. Custom rules go between BEGIN/END markers so updates do not wipe them out.
