× Here you can get community support related to ReDJ.

How to drop a category

  • kalixo
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 11 months ago #4473 by kalixo
How to drop a category was created 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.

More
8 years 11 months ago #4478 by admin
Replied by admin on topic How to drop a category
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