i want just allow string /more /next & /1 after the slug
ex :
- https://loremipsum.com/post/hello-world/more
- https://loremipsum.com/post/hello-world/next
- https://loremipsum.com/post/hello-world/1
this is what i’ve try :
/([a-z0-9]+)([A-Za-z-0-9]+)(.*)[/]{0,1}(more|next|[0-9]+){0,1}[/]{0,1}
the regex is still work when i open the page like https://loremipsum.com/post/hello-world/sdfsdfsdf
note i use (.*) on the regex for allowing any character on the slug so it will automaticly redirect.