301 Redirect Generator
Paste old and new URLs to generate exact-match redirect rules for Apache (.htaccess), Nginx or a WordPress snippet.…
Generate a WordPress .htaccess file with the default rewrite rules and optional HTTPS and www redirects, file protection, browser caching and compression.
It writes Apache 2.4 syntax: the standard WordPress block between the “BEGIN WordPress” and “END WordPress” markers, with your optional rules placed above it so WordPress will not overwrite them when it updates permalinks.
Apache servers use .htaccess for pretty permalinks, redirects and access rules. One wrong line can cause a “500 Internal Server Error”, which is why the generator only uses widely used, documented rules.
The rewrite block that sends requests for non-existent files to index.php. It is always included in the output.
Restore your backup or rename the file over FTP, then add rules back one at a time. Some hosts disable certain Apache modules.
Paste old and new URLs to generate exact-match redirect rules for Apache (.htaccess), Nginx or a WordPress snippet.…
Generate recommended HTTP security headers for your site and get them as Apache, Nginx or WordPress PHP code.
Generate a complete wp-config.php with database details, newly generated security keys, debug settings and useful constants. Keys are…
Create a clean robots.txt file with sitemap references, safe WordPress defaults and optional rules for AI crawlers, then…
Generate clean, translation-ready register_post_type() code for WordPress with labels, supports, archives and block editor settings.
Generate a fresh set of WordPress security keys and salts in your browser, ready to paste into wp-config.php.