Skip to main content
WP Bulk Publishing
Technical

WordPress .htaccess Generator (+ AI crawler block)

Standard WP .htaccess + HTTPS force + optional GPTBot / ClaudeBot block.

✅ 100% free✅ No signup✅ Runs in your browser✅ No data sent to servers
Output
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

# Force HTTPS
RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

# Block AI training crawlers you don't want
SetEnvIfNoCase User-Agent "GPTBot" bad_bot
SetEnvIfNoCase User-Agent "ClaudeBot" bad_bot
<Limit GET POST>
  Order Allow,Deny
  Allow from all
  Deny from env=bad_bot
</Limit>

Why this tool survives the ChatGPT era

GPTBot / ClaudeBot control lives in .htaccess or robots.txt — every WP site needs a stance.

Frequently asked

Where to place?

Site root, above WordPress's own # BEGIN WordPress block.

Ship all of this at scale with WBP Omni SEO Pro

Every generator on this page can auto-apply across thousands of WordPress URLs — schema, meta, hreflang, robots, llms.txt — with GEO, AEO and AIO built in.

See pricing →

Related Technical tools

Where teams ship this in production

Real sites using wordpress .htaccess generator (+ ai crawler block)-style patterns for SEO growth.