Advanced Redirects Module

The Redirects module at Squirrly > Redirects sends visitors and search engines from an old URL to a new one, logs 404 errors and redirects broken URLs. It needs the Squirrly SEO Advanced Pack.
The screenshots come from demo.squirrly.co, a test store for cat food, with Squirrly SEO 14.2.10 and the Advanced Pack 2.5.12. The demo has five sample rules: three plain redirects and two regex rules.
What the Redirects module does
Each rule has a Redirect From path, a Redirect To address and a code such as 301 or 302. Squirrly also adds rules by itself when you change the slug of a post, and it can send every 404 page to one address.
| Menu item | What you do there |
|---|---|
| Rules | Add, edit, disable, delete, filter and export redirects |
| Logs | See the redirects that ran and the 404 errors (shows when logging is on) |
| Import & Data | Import redirects from other plugins, back them up and restore them |
| Settings | Cache, hit tracking, defaults for new rules, changed paths, broken URLs, logging |
Turn on Redirects
- Go to Squirrly > All Features and find the Redirects card.
- Turn it on. The Redirects item appears in the Squirrly menu.
- Click Squirrly > Redirects. Without the Advanced Pack, the screen shows the button Install/Activate Squirrly SEO – Advanced Pack. Click it to add the Pack.
The SEO Recommended Mode and SEO Expert Mode of the setup wizard turn Redirects on. The 404 Monitor card on the same page turns on the 404 log.
Redirects Rules
Squirrly > Redirects > Rules opens the screen called Redirects Rules, “The list of redirect and rules from Squirrly SEO.”

The list of redirects
| Column | What it shows |
|---|---|
| URL From | The old path that triggers the redirect |
| URL To | The address the visitor lands on |
| Code | The redirect type, for example 301 |
| Hits | How many times the rule ran, while Track Redirect Hits is on |
| Last Access | The date and time of the last hit |
Open the three-dot menu at the end of a row to see Edit Redirect, Disable Redirect (Enable Redirect on a disabled rule) and Delete Redirect. A disabled rule stays in the list and stops running until you enable it.
Add a custom redirect
- Go to Squirrly > Redirects > Rules and click Add Custom Redirect. The Add New Redirect window opens.
- Type the old path in Redirect From, for example /old-cat-food-guide.
- Type the new address in Redirect To.
- Pick the URL Matching and the Redirect Type. Both start with the defaults from Settings.
- In SEO Beginner mode, turn on More Options to see Regex Match, Ignore Case and Ignore Slash.
- Click Add Redirect.

| Option | Choices |
|---|---|
| URL Matching | Exact URL match, Ignore all query parameters, Ignore and pass all query parameters |
| Redirect Type | 301 – Moved Permanently, 302 – Found, 307 – Temporary Redirect, 308 – Permanent Redirect, 404 – Page Not Found |
| Regex Match | On treats Redirect From as a regular expression |
| Ignore Case | On matches the path whatever the letter case |
| Ignore Slash | On matches the path with or without the trailing slash |
Example: redirect a whole folder with regex
One regex rule can move every URL in a folder. On the demo site the recipes moved from /recipes/ to /cat-recipes/, so this rule covers all of them:
- In Redirect From, type
^/recipes/(.*)$. The part in brackets catches everything after /recipes/. - In Redirect To, type
/cat-recipes/$1. $1 puts the caught part back. - Pick 301 – Moved Permanently, turn on Regex Match and click Add Redirect.

Now /recipes/turkey-puree-for-older-cats/ opens /cat-recipes/turkey-puree-for-older-cats/ with a 301, and the same goes for every other recipe. The demo site has a second regex rule, ^/blog/(.*)$ to /$1, that drops an old /blog/ folder from the URLs.
Leave Regex Match off unless you write regular expressions. How To Use Redirects with Regular Expression & Regex? has examples.
Edit a redirect
Click Edit Redirect on the row, change the fields and click Save Redirect. The edit window also has Redirect Order and calls the regex switch Regex Redirect Match. Saving an edit sets Hits back to 0.


Delete redirects in bulk
- Tick the redirects you want to remove.
- Pick Delete in Bulk Actions and click Apply.
- Confirm “Are you sure you want to delete the rules?”.
Filter and search the list
The list under Bulk Actions starts on All redirects. Pick one type to see only those rules.
| Filter | Rules it shows |
|---|---|
| Custom Redirects | The ones you added with Add Custom Redirect |
| Post Redirects | The ones set in the 301 redirect field of a post snippet |
| Slug Changed Redirects | The ones Squirrly added when a slug changed |
To find one rule, type part of the path in “Write the redirect you want to search for” and click Search. Show All clears the search. The list under the table sets how many records show per page.
Export redirects to CSV
Click Export Redirects under the table to download sq_redirects.csv. The columns are source_url, target_url, action_code, ignore_case, ignore_slash and match. The export takes up to 10,000 rules and follows the type filter you picked.
Redirects Log
The Logs item shows in the Redirects menu once 404 Monitor or Log Redirects is on. The Redirects Log screen lists URL From, URL To, Code and Access for each entry.
- Pick a code in the list at the top, for example 301 – Moved Permanently, to see only those entries.
- Search with “Write the redirect you want to search for” and clear it with Show All.
- Click Clear All Log and confirm “Are you sure you want to empty the log?” to empty it.

404 Monitor
Pick 404 – Page Not Found in the code list to see the addresses that returned a 404 and when. Add a rule for the ones that should point to a live page. The entries only start after 404 Monitor is on in Settings.

Import, back up and restore redirects
Squirrly > Redirects > Import & Data opens Import & Data. With Redirects on, the Import Settings & SEO tab has Import Redirect From. With the Advanced Pack active, Export Everything and Import Everything have an Advanced Pack redirects switch.

- Open Backup Settings & SEO, leave Advanced Pack redirects on and click Export Everything.
- Open Import Settings & SEO, pick the source in Import Redirect From and click Import Redirects.
- Check the new rules in Squirrly > Redirects > Rules.
The sources are Eps 301 Redirects, All In One SEO, Redirect Redirection, Redirection, Rank Math, Quick Redirects, Squirrly SEO, SEO Framework, SEO Press, Yoast SEO and WordPress Core (Slug Changes). The note says “It will overwrite the redirects you set if there are the same paths.” A good import tells you how many redirects it added. To bring the rules back, upload the file in Import Everything on the Restore Settings & SEO tab, with Advanced Pack redirects on.
Redirects Settings
Squirrly > Redirects > Settings sets how all the rules behave. Click Save Settings at the bottom after any change.

| Label | What it does | Default |
|---|---|---|
| Use Redirect Cache | Loads redirects from cache to speed them up | Off |
| Track Redirect Hits | Counts hits and the last access, with no user information | On |
| Default URL Matching (Expert) | The matching new rules start with | Pass |
| Default Redirect Type (Expert) | The code new rules start with | 301 – Moved Permanently |
| Default Ignore Case (Expert) | New rules ignore letter case | On |
| Default Ignore Slash (Expert) | New rules ignore the trailing slash | On |
| Redirect Changed Paths | Post types that get a redirect when their path changes | Your choice |
| Redirect Broken URLs | Sends every not found post to one address | Off, address is the home page |
| 404 Monitor | Logs every 404 error | Off |
| Log Redirects | Logs every redirect that runs | Off |
| Log HTTP Header (Expert) | Saves the request headers with each log entry | On |
| Log days | How long log entries are kept | 7 days |
Use Redirect Cache
The screen says it loads redirects from cache and improves the redirect speed. It’s off by default.
Track Redirect Hits
Fills the Hits and Last Access columns of the rules list. The screen notes it contains no user information.
Default URL Matching
This Expert Mode option sets the matching that new rules start with.
| Choice | Text on the screen |
|---|---|
| Exact | Matches the query parameters exactly defined in your source, in any order |
| Ignore | As exact, but ignores any query parameters not in your source |
| Pass | As ignore, but also copies the query parameters to the target |
Default Redirect Type
The code Squirrly puts in the header of new rules, from 301 to 404. The default is 301 – Moved Permanently.
Default Ignore Case
The screen gives the example “/Source-URL will match /source-post”. On by default.
Default Ignore Slash
The screen gives the example “/source-post/ will match /source-post”. On by default.
Post Types Settings
This block holds Redirect Changed Paths and Redirect Broken URLs. How to Redirect All 404s on Your Site explains when the second one makes sense. Squirrly saves that switch with the 404 page pattern of Automation.
Redirect Changed Paths
Pick the post types to watch in the list. When you change the path of one of them in the post editor, Squirrly adds a rule from the old path to the new one, listed under Slug Changed Redirects. The demo watches Post, Page, Attachment and Product.

Log Redirects
Keeps a log with all the redirects. The entries show in Redirects Log.
Log HTTP Header
An Expert Mode switch that saves the HTTP headers with each entry, except cookies. The screen warns they may include user information and make the log bigger.
Log days
Choose 1, 7, 30, 60, 90 or 365 days. A daily WordPress cron job deletes older entries.
Before you change redirects
- Turning off both 404 Monitor and Log Redirects deletes the log table, with every entry in it.
- Make a backup with Export Everything (Advanced Pack redirects on) before an import, because imported rules replace rules with the same path.
- Editing a rule sets its Hits back to 0.
Troubleshooting
“Cron is disabled in config with DISABLE_WP_CRON declaration. Make sure the cron is working and the log is cleared.”
The log can’t clear itself while WordPress cron is off. Run cron from the server, or clear the log by hand with Clear All Log.
“No redirects found to import.”
The plugin you picked has no redirects in this database. Pick another source in Import Redirect From.
The Redirects menu is missing
Turn on the Redirects card in Squirrly > All Features and check that the Advanced Pack is active.
The Logs item is missing
Turn on 404 Monitor or Log Redirects in Squirrly > Redirects > Settings.
Frequently asked questions
Do I need the Advanced Pack for redirects?
Yes, Squirrly > Redirects shows the Install/Activate Squirrly SEO – Advanced Pack button until the Pack is active.
Does Squirrly redirect a post when I change its slug?
Yes, for the post types picked in Redirect Changed Paths.
Can I move my redirects from Redirection or Rank Math?
Yes, pick the plugin in Import Redirect From and click Import Redirects.
How long does Squirrly keep the logs?
7 days by default, and up to 365 days with Log days.
Related tutorials
- Redirect Features: What Does Squirrly Offer for Creating Redirects?: the redirect options outside this module.
- How To Use Redirects with Regular Expression & Regex?: rules that match many paths.
- How to Redirect All 404s on Your Site and When You’d Want That: the Redirect Broken URLs switch.
- Import and Data: back up and restore the rules.
- SEO Links and Redirects: link and attachment redirect settings.



