Creating 301 redirects: Difference between revisions

From Joomla! Documentation

RCheesley (talk | contribs)
No edit summary
Cmb (talk | contribs)
Several markup changes. URL correction.
 
Line 1: Line 1:
We often need to create redirects to point an old page at a new page.
We often need to create redirects to point an old page to a new page.


While this is possible to do with extensions, it's very simple to add to your .htaccess file.  At the bottom of the page, after the end of the core Joomla! SEF section, simply append any redirects.
While this is possible to do with extensions, it's very simple to add to your ''.htaccess'' file.  At the bottom of the file, after the end of the core Joomla! SEF section, simply append any redirects.


If you're not confident using redirects, check out
If you're not confident using redirects, use the [https://www.htaccessredirect.net/ ''.htaccess'' Generator].


http://www.htaccessredirect.net/
This site allows you to create a number of different redirects. If you're redirecting single pages, enter the old URL and new URL in the fields highlighted below. When you generate the ''.htaccess'' file, it will show the code in the box on the right hand side. Copy and paste it at the bottom of your ''.htaccess'' file.
 
This site allows you to create a number of different redirects - if you're redirecting single pages simply enter the old URL and new URL in the fields highlighted below, and when you generate the htaccess it will show the code in the box on the right hand side. Copy this, and paste it at the very bottom of your htaccess file.


[[File:htaccess.jpg]]
[[File:htaccess.jpg]]

Latest revision as of 16:49, 13 November 2022

We often need to create redirects to point an old page to a new page.

While this is possible to do with extensions, it's very simple to add to your .htaccess file. At the bottom of the file, after the end of the core Joomla! SEF section, simply append any redirects.

If you're not confident using redirects, use the .htaccess Generator.

This site allows you to create a number of different redirects. If you're redirecting single pages, enter the old URL and new URL in the fields highlighted below. When you generate the .htaccess file, it will show the code in the box on the right hand side. Copy and paste it at the bottom of your .htaccess file.