Clean, readable URLs are better for both users and search engines. Instead of a URL like "page.php?id=123&cat=4", a rewritten URL like "/products/widgets" is easier to read, share, and remember. Apache mod_rewrite rules, placed in your .htaccess file, handle this translation transparently. This generator creates the correct RewriteRule syntax so you do not have to learn the complex regex patterns yourself.
Enter your original URL pattern and the clean URL you want visitors to use. The tool generates the appropriate Apache mod_rewrite rules that you can paste into your .htaccess file in the root of your website.
Always include "RewriteEngine On" at the top of your .htaccess file before any rewrite rules. Test your rules on a staging environment before deploying to production. A syntax error in .htaccess can take down your entire site. If you are on Ultra Web Hosting with NGINX caching enabled, note that .htaccess rewrite rules are processed by Apache behind the NGINX reverse proxy, so they still work normally.
Need reliable hosting? These free tools are brought to you by Ultra Web Hosting. Fast, secure shared and reseller hosting with 24/7 expert support. View hosting plans →