Need help in redirecting to new URL without ID#s
-
webbus
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 11 months ago - 10 years 11 months ago #2403
by admin
Hi Kala,
I have just a question for you. Are the destinations existing? I mean, if you call the URL:
mysite.com/category/sub-category/article-name
Do you get an existing page? I ask you because this is a required condition for redirect (ReDJ is just for redirections, not for routing).
Thanks,
Luigi
Last edit: 10 years 11 months ago by admin.
The following user(s) said Thank You: webbus
Please Log in or Create an account to join the conversation.
-
webbus
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 11 months ago #2406
by admin
Ok
so this rule could do the job (each rule matchs all articles of a single sub-category):
From URL: ^/category/[0-9]{1,3}-sub-category/[0-9]{1,3}-
To URL: http://{siteurl}/category/sub-category/${a}
Request only: true (checked)
Placeholders:
p={path}
a={preg_subject 1,p}/-sub-category\/[0-9]{1,3}-([^\/]+)/i{/preg_subject}
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
webbus
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
10 years 11 months ago #2407
by webbus
Thanks Luigi,
I tried this for one of the subcategory. But it is not working. I am getting 404 page.
Regards,
Kala Mohan
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 11 months ago #2408
by admin
Hi Kala,
I need to know the source URL you are trying. Can you post here or send me a message at info(at)selfget.com?
Thanks,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.178 seconds