Sign up today and explore Xicmo free for 48 hours600 credits, no card
Xicmo

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

See what it does

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

48-hour free trial

Sign up today and run your whole marketing team free for 48 hours

  • 600 credits to spend, no card needed
  • Every agent: SEO, GEO, content, Reddit, X, email and more
  • Up to 3 websites, the same as a Lite plan
  • The Video Agent needs a subscription

The 48 hours start the moment you sign up.