Free, no sign-up
Htaccess redirect generator
Choose your HTTPS, www and trailing-slash rules and list old and new paths. Get the .htaccess to upload to your Apache server.
www
Trailing slash
.htaccess
RewriteEngine On
# Force HTTPS
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]For Apache with mod_rewrite. Back up your current .htaccess first, and test with the redirect checker after uploading.
Find every broken URL and get the redirect fixed for you
- Your whole site audited every day, not one check at a time
- Every issue turned into a fix you approve
- Rankings and traffic tracked from Search Console
This tool checks once. The SEO Agent works on it every day.
Meet the SEO Agent in Xicmo
Questions people ask
Is a 301 redirect good for SEO?
Yes. A 301 tells Google the page moved for good and passes the old URL's ranking signals to the new one.
Does .htaccess work on Nginx?
No. .htaccess is for Apache and LiteSpeed. Nginx uses rules in its server config.
More free tools
All tools- Canonical Tag CheckerCheck a page's canonical URL.
- Mobile Friendly TestCheck a page's mobile setup.
- Free Site AuditSEO score and top fixes for any URL.
- Meta Tag CheckerTitle, description and a Google preview.
- llms.txt GeneratorA ready llms.txt for your site.
- AI Crawler CheckerCan ChatGPT, Claude and Perplexity read you?
Free trial
Sign up today and start free with 200 credits
- 200 credits to spend, no card needed
- SEO, GEO and the AI CMO, on your own website
- Up to 3 websites, the same as a Lite plan
- No time limit: the credits are yours until you use them