× Here you can get community support related to ReDJ.

Unable to redirect some URLs, not others

  • Hjelptilhjelp
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 month ago #862 by Hjelptilhjelp
Unable to redirect some URLs, not others was created by Hjelptilhjelp
Hi!

Thank you for a great extension!

The ReDJ extension works great in order to redirect some URLs on my site, but unfortunately won't redirect others.

:lol: Example on redirects that works:
FROM:
legg-inn-annonse/kjop-bannerannonse/kontaktskjema-komplett-annonsepakke
TO:
www.hjelptilhjelp.no/legg-inn-annonse

:S Example on redirects that doesn't work:
FROM:
index.php?option=com_adsmanager&view=adsmanager&layout=details&adid=366&Itemid=153
TO:
www.hjelptilhjelp.no/kurs/kurs-i-akershus#kurs-adhd

:S Other example on redirects that doesn't work:
FROM:
index.php?option=com_content&view=article&id=1177%3Aasker
TO:
www.hjelptilhjelp.no/i/akershus/asker

Do you have any clue on why the two example redirects doesn't work. It seems that the extension won't accept redirects on URLs starting with "index.php?.....and-so-on...."

Is there any chance that I can resolve this issue? Thank you very much in advance.

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

More
11 years 1 month ago #863 by admin
Replied by admin on topic Unable to redirect some URLs, not others
The issue is you must escape special chars. The "From URL" is a regular expression, so you should use \? for a literal question mark. Also the dot should be escaped for a literal dot. So try this:
From URL: ^/index\.php\?option=com_adsmanager&view=adsmanager&layout=details&adid=366&Itemid=153
To URL: http://{siteurl}/kurs/kurs-i-akershus#kurs-adhd

Kind regards,
Luigi
The following user(s) said Thank You: Hjelptilhjelp

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

  • Hjelptilhjelp
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 month ago #864 by Hjelptilhjelp
Replied by Hjelptilhjelp on topic Unable to redirect some URLs, not others
Thank you for a quick reply! With your advice, it works just fine. This is an excellent extension, and excellent support! Thank you again!

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

More
11 years 1 month ago #865 by admin
Replied by admin on topic Unable to redirect some URLs, not others
U're welcome.

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

Time to create page: 0.087 seconds