0

I have a regex pattern that matches a URL "slug" which I use to redirect all URI's with one segment that contain alphanumeric characters and hyphens(I.E. mysite.com/about-us) to my pages controller. My problem is that I have a separate controller for my home page, so I want to exclude the string "home" from any matches. How can I do this with the pattern that I have below?

^([a-zA-Z0-9-]+)$
ShoeLace1291
  • 4,551
  • 12
  • 45
  • 81

0 Answers0