Htaccess Redirect Generator

Online FREE SEO Tools

Htaccess Redirect Generator


1. Select redirect type





2. Enter your domain name


Do not include www. Domain name only - e.g. yourdomain.com

3. Get your code


4. Copy the code to your .htaccess file



About Htaccess Redirect Generator

Free Htaccess Redirect Generator.

Htaccess Redirect Generator is a tool that allows users to generate rules for redirecting web pages using the .htaccess file. The .htaccess file is a configuration file used by web servers, such as Apache, to control various aspects of website functionality, including redirects.

Htaccess Redirect Generator allows users to enter the old URL and the new URL for a page that has been moved or renamed, and the tool generates the appropriate code to redirect visitors to the new page. The generated code can then be copied and pasted into the .htaccess file on the user's web server.

What is the use of htaccess?

The .htaccess file is a configuration file used on web servers running Apache, an open-source web server software. It is commonly used to control and configure various aspects of the server and the website hosted on it.

Here are some of the common uses of the .htaccess file:

  1. URL rewriting: .htaccess can be used to rewrite the URL of a webpage, making it more user-friendly and easier to remember.

  2. Authentication and password protection: It can be used to restrict access to certain directories or pages on a website, by requiring visitors to enter a username and password to view them.

  3. Error pages: .htaccess can be used to customize error pages such as 404 (page not found) errors, providing a more user-friendly and informative message to visitors.

  4. Redirects: It can be used to redirect visitors from one page or website to another.

  5. Security: .htaccess can be used to increase website security, by blocking access to certain files or directories and preventing malicious attacks such as SQL injection or cross-site scripting (XSS).

Overall, the .htaccess file is a powerful tool that allows website owners to customize and control various aspects of their website and server configuration.