Most of the times I use redirects for temporary purposes, usually for short links that should change over time (for example, `https://mysite.org/conference-signup`). So it was important for me that this module could redirect with other status codes, mainly 302, instead of 301.
I haven't created any ProcessWire modules yet, but I decided to try and improve apeisa's module, and I got it to work like I wanted, so I thought I should contribute this to the community. I know I should make a pull request, but I'm not experienced in git yet and I have little time now, so the best I can do now is leave here the file for you to see if you want. I'm sorry for this.
I added a column "status" to the table process_redirects, like this:
`status` enum('301','302','303','307') NOT NULL DEFAULT '302',
I only used the status codes specified on the documentation for $session->redirect. In future I'd like to specify them in a constant or static property (not sure), and then use it to generate the options in the edit form.
I haven't bumped version, and I'm not sure how to procceed about updating the database schema.
Could you have a look, please?
ProcessRedirects-tomasanjosbarao.module