Creating 301 redirects: Difference between revisions
From Joomla! Documentation
No edit summary |
Several markup changes. URL correction. |
||
| Line 1: | Line 1: | ||
We often need to create redirects to point an old 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 | 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, | If you're not confident using redirects, use the [https://www.htaccessredirect.net/ ''.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. | |||
This site allows you to create a number of different redirects | |||
[[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.
