.htaccess
An Apache configuration file at the WordPress root that controls URL rewrites and many request rules.
Last updated ยท Reviewed by Ali Yasin Jatoi
.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.
