How to drop a category
-
kalixo
-
Topic Author
-
Offline
-
Senior Member
-
Less
More
-
Posts: 45
-
Thank you received: 0
-
-
8 years 11 months ago #4473
by kalixo
Dear best of the best
I messed up a little with sh404sef engine, and I have a lot of strange urls grabbed by google and others.
Those strange urls are as shown below:
website.com/2015102110116/15102103
where
"/2015102110116/" is a category name made as SEF (built as some dates)
and
"15102103" is my correct webpage address.
Now, I need to direct redirect those links as:
from:
/#####numbers#####/
to:
{scheme}://{siteurl}/{pathltrim //#####numbers#####/}{queryfull}
Could you please help me with this?
Thanks in advance!
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
8 years 11 months ago #4478
by admin
Try this:
From URL: ^/[0-9]+/
To URL: {scheme}://{siteurl}/{preg_match 2}/\/([0-9]+)\/(.*)/i{/preg_match}
Request only: true (checked)
Kind regards
Please Log in or Create an account to join the conversation.
Time to create page: 0.143 seconds