Simple Htaccess Redirects & Rewrite Generator tool for SEO friendly URLs Changes and Web Migrations

The htaccess redirects generator tool is meant to be used when implementing URLs changes, Web migrations or when configuring your Website canonical URLs versions -those that are meant to be indexed and ranked-, while avoiding losing your former or non-canonical URLs traffic and rankings by referring your users and search bots to their new or canonical URLs versions via permanent redirects (with 301 http status).

The generator wants to facilitate the implementation of the most common Web redirects scenarios via htaccess, by generating the necessary rewrite code to be pasted in your htaccess file in case you’re using an Apache Web Server.

Before implementing any changes on your htaccess code, remember to make a back up copy of it, in case something goes wrong and as soon as you implement the changes, validate that the meant to be redirected URLs are indeed going with the right 301 http status where you wanted them to.

Select the desired redirect scenario and obtain a personalized redirect code generated based on your input, ready to copy & paste in your htaccess file. If you would like me to include an additional redirect scenario, please let me know by sending me a message over here .

Select your Web redirect scenario to generate your Htaccess Rules

Non-www to www URLs 301 Redirect Generator for Htaccess

Obtain the htaccess rule to redirect from your domain non-www version to the www one, just add your domain name without the “www” in this field (for example, aleydasolis.com):


Uppercase to Lowercase 301 Redirect Generator for Htaccess

In this case there's no input needed: Here you have the rules to 301-redirect from your Uppercase to Lowercase URLs


Subdomain to Subdirectory 301 Redirect Generator for Htaccess

Add in the field the full URL of the directory (for example: https://www.aleydasolis.com/blog/) where you want to redirect from a subdomain (for example: http://blog.aleydasolis.com/). You'll then need to copy the generated rules into the .htaccess file of the subdomain that you want to be redirected.


Personalized 404 Error Page Rewrite Generator for Htaccess

Enter the full URL that you want to use for your personalized 404 page, for example: https://www.aleydasolis.com/my404page.html


Pages With to Without Extension 301 Redirect Generator for Htaccess

Choose which are the file types that you want to redirect to its file names without adding the extension, for example, if you choose: “html”, then every html file on your domain will be redirected to its file name without adding the extension: https://www.aleydasolis.com/page.html to https://www.aleydasolis.com/page


Page to Parent Directory 301 Redirect Generator for Htaccess

Add the full URL of the page to be redirected to its parent directory, for example: https://www.aleydasolis.com/category-a/index.html (that will be redirected to its parent directory, which in this case is: https://www.aleydasolis.com/category-a/)


Page to Page 301 Redirect Generator for Htaccess

Enter the URL of your old page to be redirected, for example: /my-old-url-blog
Enter the URL of your new page to redirect to, for example: /my-new-url-blog/


Non-Slash vs Slash URLs 301 Redirect Generator for Htaccess

What type of redirect do you want to generate? From non-slash to slash (for example, from https://www.aleydasolis.com/category to https://www.aleydasolis.com/category/) or viceversa? Select the option here and just copy to your htaccess:


HTTPs vs HTTP URLs 301 Redirect Generator for Htaccess

What type of redirect do you want to generate? From http to https (for example, from: https://www.aleydasolis.com/category-a/ to https://www.aleydasolis.com/category-a/) or viceversa? Select the option here and just copy to your htaccess:


Domain to Domain 301 Redirect Generator for Htaccess

Add the full address of the new domain where you want to redirect the one where you’ll place the htaccess at.


Block IP access Rule Generator for Htaccess

Enter the IP address (for example: 127.0.0.1) that you want to block access to your site.


www to non-www URLs 301 Redirect Generator for Htaccess

Obtain the htaccess rule to redirect from your domain www version to the non-www one, just add your domain name with the “www” in this field (for example, www.aleydasolis.com):


Redirect from nonwww to www
Redirect from www to nonwww
Redirect All Domain Urls Https vs Http
Redirect Page to Page
Domain to Domain 301 Redirect
Page to Parent Directory 301 Redirect
Non-Slash vs Slash URLs Redirect
Personalized 404 Error Page
Block IP access
Page With to Without Extension
Uppercase to Lowercase
Subdomain to Sudirectory

Get in Touch Now

Do you need SEO Consulting, Training or Advise?

RESPONSIBLE: ORAINTI, S.L. || PURPOSE: To send the requested information, respond to the inquiry made, and, if authorized, send information about activities, products, and services related to the company that may be of interest to you || LEGAL BASIS: Consent provided by you || RIGHTS: You can exercise your rights of access, rectification, erasure, data portability, restriction, or objection to the processing of your data by sending a written request to C/ Orfila, 5, Esc 1, 4º CyD, 28010, MADRID. or an email to info@orainti.com || ADDITIONAL INFORMATION: You can find additional information at Privacy Policy.

Contacto
International SEO Consultant, Author & Speaker | Aleyda Solis
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.