Skip to content

Instantly share code, notes, and snippets.

@jonathanmooredigital
Last active July 18, 2023 16:40
Show Gist options
  • Save jonathanmooredigital/6eb86df68311da079b5d5e6fe7289ef6 to your computer and use it in GitHub Desktop.
Save jonathanmooredigital/6eb86df68311da079b5d5e6fe7289ef6 to your computer and use it in GitHub Desktop.
/*
========================================================================
https://www.linkedin.com/in/moorejonathan/
https://twitter.com/nathanless
========================================================================
*/
Home
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?(?:\/(?:\?.*)?)?$
Account
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?/account.*
Orders
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?/orders.*
Blogs - Paginated
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?/blogs/.*page=.*
Blogs
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?/blogs/.*
Pages
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?/pages/.*
Products within Collections
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?/collections/.*/products?/.*
Collections - Paginated
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?/collections(?!.*products/.*)(?!.*\/product.*).*page=.*
Collections - Types
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?/collections(?!.*products/.*)(?!.*\/product.*).*types.*
Collections
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?/collections(?!.*products/.*)(?!.*\/product.*)(?!.*page.*)/[^/]+$
Products
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?/products/.*
Cart
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?/cart.*
CDN
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?/cdn/.*
Apps
^(https?://)?([a-zA-Z0-9-]+\.?)+(\.[a-zA-Z]{2,})?/apps/.*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment