Rewrites

There may be a number of reasons you want to use the rewrite module, a typical use case would be if a URL managed to get into the search index but since it's been found by the search engine you want to update the URL. In this case you don't want that person to get a 404 (page not found error), rather you'd like to redirect them to the new corrected URL.

Rewrite usage

Under System » Rewrites you will find List and URL errors.

Manage Rewrites

You can set up the follow options for your rewrite 

Note: for source URLs you only need to add in the URL relative to the domain name, so you don't need to add in the https://yourdomain.com, just /old-page and not https://yourdomain.com/old-page . 

You can apply filters to these on this table of errors. 

The preferred method to configure rewrites

In blogs and pages users can also the Custom Url setting. This is useful for them to make a page or post appear at a specific URL. 

Here you can specific a totally different URL structure out side the one that is typically generated based on the page folder structure or the blog hierarchy. Note: Custom URLs should be used without the domain name in them. 



List

The "Rewrites" section can be found by following:

System-> Rewrites-> List

You may filter through the system for a source by entering the source into the system.

You may also choose which match type and which actions you would like to assign to the rewrite.

You must also enter the "target" into the system

You may hover over the calendar icon to see the date of when the site was published.



Sites can be:

Add Rewrite

To add a rewrite you must press the "add rewrite" icon on the top, right-hand corner on the screen.

When you add a rewrite, you must fill out which source you are going to use by filling it out into the allocated section underneath "Details". 

You should fill out the remaining sections by entering in your answers.

After you have completed the sections you may save your work by pressing the "Save" icon on the top right hand corner.