× Here you can get community support related to ReDJ.

Redirect Rules

  • Yourch
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 2 months ago #3083 by Yourch
Redirect Rules was created by Yourch
Hi,
Thanks for your valuable component. I need to clear > 200 broken Urls. I'm new with the redirect rules and syntax.

I need to know how to create a rule for many URLs like this
website.com/ko/old-videos/h/108/business-video-3 where 108 is the ID and / business-video-3 the title
TO
website.com/en/new-videos/h/108/business-video-3
as you can see the start and the end is the same: website.com/ .... only ...language/folder/ ...change but the end is still the same = h/108/business-video-3

I tried
From URL: ^/ko/old-videos/h/ (and also /h/* or /h*$ )
to URL {siteurl}/en/new-videos/h/

Redirect 301
Case sensitive = y
Request Only = y
Decode URL = y
Placeholders = 0
but doesn't work
Any idea Please ? Could you please give more examples in the document of Redj ? for newbies !

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

More
10 years 2 months ago #3085 by admin
Replied by admin on topic Redirect Rules
Hi,
try this:
From URL: ^/ko/old-videos/h/
To URL; {scheme}://{siteurl}/en/new-videos/{pathltrim /ko/old-videos/h/}{queryfull}
Request only: true (checked)

The example is already there (last example):

www.selfget.com/documentation/redj-joomla25/examples-and-solutions-to-common-problems.html

Kind regards,
Luigi

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

Time to create page: 0.149 seconds