ServerSpan · Outils

.htaccess rules generator

Create powerful and optimized Apache .htaccess rules in seconds.

Redirects Security headers Hotlink & blocking

Generated .htaccess

Copy or download the rules.

# Your generated .htaccess rules will appear here.
# Pick the options you need, then click “Generate .htaccess”.

ServerSpanBesoin de quelqu’un pour suivre l’infrastructure ?Parlons d’une mission de gestion adaptée à vos usages. Son périmètre, son infrastructure et son devis sont conçus autour de votre projet.Parlons de votre projet

La gestion et l’hébergement sont conçus pour chaque mission.

Configuration

Choose options, then generate.

Redirects & rewrites

One per line, format: /source-path,http://destination.url

Caching & performance
Security
Visitor blocking

One IP per line. (Exact match)

One per line, matches if the User-Agent contains any of these strings.

Used as the allowlisted referrer domain.

Custom error pages

One per line, format: error_code,/path/to/page.html



Frequently asked questions

Need .htaccess help?

We can harden and optimize your Apache setup.

From redirects and security headers to caching policies and hotlink protection, our team can help you deploy clean, safe and effective rules.

Get in touch