-
– URLs blog posts of the site contain dates (YYYY/MM/DD):
https://domain.com/2020/11/27/canada-medlasers-tips-to-prevent-acne-scars/– We have removed the dates, looking like this:
https://domain.com/2020/11/27/canada-medlasers-tips-to-prevent-acne-scars/– We would like to redirect any blog post URL that contains a date to the same URL but without the date.
– What is the correct regular expression, in order to do this with your plugin?
We tried this but is not working:
Source /d{4}/d{2}/d{2}/(.*) – Marked as Regex
Destination: domain.com/$1
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
The ticket ‘Redirect if URL contains date’ is closed to new replies.