Skip to content

Instantly share code, notes, and snippets.

@CapWebSolutions
Last active March 15, 2022 14:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save CapWebSolutions/abb8065028fca96d091f8b193a381342 to your computer and use it in GitHub Desktop.
Save CapWebSolutions/abb8065028fca96d091f8b193a381342 to your computer and use it in GitHub Desktop.
Rules for basic WordPress URL rewriting in Screaming Frog.
/**
* WordPress URL rewriting rules for Screaming Frog Spider
* @author Matt Ryan - https://capwebsolutions.com
* @date 2022-03-15
*/
// Nav: Configuration | URL Rewriting
// Replacing:
// https://example/com/blog/page/2/
// https://example.com/category/blog/page/3
// with:
// https://example.com/blog/page/1/
// https://example.com/category/blog/page/1/
//
Regex: /page/\d+/
Replace: /page/1/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment