WordPress glossary

.htaccess

An Apache configuration file at the WordPress root that controls URL rewrites and many request rules.

Last updated ยท Reviewed by Ali Hassan

.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.

Need this fixed, not just defined?

We have shipped hundreds of fixes for exactly this kind of issue. Book a 20 minute call and we will tell you straight whether it is a quick fix or a bigger root cause.

Call Book a call