× Here you can get community support related to ReDJ.

Need help in redirecting to new URL without ID#s

  • webbus
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 14 hours ago #2401 by webbus
Hi,

Thanks so much for giving us this excellent component. I am a newbie and I want to redirect ~9500 urls to a new one. I read through your forum & documentation but not able to figure this out.

I just want to remove the numbers (cat id & Article id) from my old URL and redirect it to new url.

Old URL: mysite.com/category/123-sub-category/12345-article-name

New URL: mysite.com/category/sub-category/article-name

Is there a simple rule for this.

Regards,
Kala Mohan

Please Log in or Create an account to join the conversation.

More
10 years 2 hours ago - 10 years 2 hours 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 2 hours 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
  • New Member
More
9 years 11 months ago #2405 by webbus
Thanks for your immediate response Luigi,

Yes my second URL is working fine (Without the IDs)

I did the modifications mentioned in this Joomla forum post forum.joomla.org/viewtopic.php?t=673444 for SEF URLs

The method explained here really worked. www.searchenginepeople.com/blog/how-to-remove-article-id-numbers-in-joomla-for-enhanced-seo.html

Thanks once again and I appreciate your help.

Please Log in or Create an account to join the conversation.

More
9 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
  • New Member
More
9 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.

More
9 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.167 seconds