rearrange dates in url
-
I’ve used regex a lot when I want to skip out on the dates in the url, like this:
^/\d{4}/\d{2}/\d{2}/(.*) –> https://newdomain/$1
but how can I get access to the actual date info?
I want to go from:
old.com/2022/09/19/my-new-post to new.com/2022-09-19/my-new-post
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘rearrange dates in url’ is closed to new replies.