.htaccess redirection
.htaccess redirection

What .htaccess redirection does
The .htaccess redirection tool on RapidTables generates permanent (301) and temporary (302) redirect code for Apache servers. Users input source and destination URLs to receive ready-to-copy directives that can be placed in a site's .htaccess file. The output includes standard Redirect commands for single URLs or entire domains, addressing common scenarios like migrating to new page structures or changing domain names.
How to use the RapidTables .htaccess redirection
- 1
Open the .htaccess redirect page on RapidTables
- 2
Enter the source URL (old page path) and destination URL (new page path) in the provided fields
- 3
Select the redirect type (301 permanent or 302 temporary) if prompted
- 4
Copy the generated .htaccess code snippet and paste it into the root .htaccess file of the old website
- 5
Test the redirect by visiting the old URL to confirm it sends visitors to the new destination
Best for
Developers and site owners managing Apache servers who need to implement permanent URL migrations or redirect old pages to new locations without access to the main server configuration file.
Limitations
- Requires access to edit the site's .htaccess file on the server
- Performance impact noted when using .htaccess versus main httpd.conf configuration
- Shared hosting environments may have .htaccess restrictions or overrides disabled
.htaccess redirection FAQ
- What is the difference between a 301 and 302 redirect in this tool?
- A 301 redirect is permanent and transfers page rank to the new URL, while a 302 redirect is temporary and does not transfer ranking value, suitable for short-term routing.
- Do I need technical server access to use the generated code?
- You must be able to create or edit a .htaccess file in your website's root directory; if your host restricts this, the redirects may not function.
- Can I redirect an entire domain to a new domain using this tool?
- Yes, the tool provides a directive to redirect all pages from the old domain to the new domain's root, typically using a forward slash source and the new domain as the destination.
- What should I do if my redirect does not work after adding the code?
- Verify that the .htaccess file is in the correct directory and that the Apache server is configured to allow .htaccess overrides; otherwise, the server may ignore the file.
More .htaccess redirection tools
- 01Toolsanatoolsana.com
.htaccess generator with a redirects section for creating 301/302 rules and other Apache configuration snippets. ([to...
- 02ChemiCloud Web Toolschemicloud.com
HTACCESS Redirect Generator that creates 301/302 redirect rules and other common redirect patterns you can paste into...
- 03RJL.iorjl.io
A visual .htaccess generator that includes redirect rules and other common Apache directives; it runs locally in the ...
- 04CodeBeautifycodebeautify.org
Generates 301 redirect code with options that include Apache .htaccess output, letting you produce redirect rules fro...
- 05Pixedrapixedra.com
Free 301 redirect generator that outputs Apache .htaccess rules from a list of old and new URLs, with bulk input supp...