× Here you can get community support related to ReDJ.

Please, need help with a redirect rule

More
10 years 8 months ago #1438 by rafpv
Hi,

Thanks for your great plugin/component!

I created this redirect rule: mysite/noticias to mysite/lista-noticias. But I want to specify it a bit more. I don't want the redirect to work case my url contains any addiontal path or any query.

Examples that should not be redirected:
mysite/noticias/addionalpath
mysite/noticias?somequery

The only case that should be redirected:
mysite/noticias

Its possible to create this kind of rule? How?

Thanks in advice,

Rafael

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

More
10 years 8 months ago #1440 by admin
Replied by admin on topic Please, need help with a redirect rule
Hi Rafael,
just add the dollar sign at the end ($ means "end with"). That's all...

Kind regards,
Luigi

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

More
10 years 8 months ago #1441 by rafpv
Replied by rafpv on topic Please, need help with a redirect rule
Hi Luigi,

Thanks for your reply.

Unfortunately, it did not work.

My from URL now is: /noticias$
My to URL is: http://{siteurl}/lista-de-noticias

When I try to access http://localhost:8888/mysite/noticias/238-teste123 I keep getting redirected to http://localhost:8888/mysite/lista-de-noticias.

I am missing something?


Rafael

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

More
10 years 8 months ago #1443 by admin
Replied by admin on topic Please, need help with a redirect rule
Hi Rafael,
there must be something else. First, try to clear browser cache and retry. If the problem persists, send me a dump of your redj table at info(at)selfget.com. Your site is on localhost so I cannot access to backend and fix the issue for you. But we can schedule a remote session using Team Viewer, if needed.

Kind regards,
Luigi

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

More
10 years 8 months ago #1446 by rafpv
Replied by rafpv on topic Please, need help with a redirect rule
Hi Luigi,

Clearing the browser cache solved my problems. The redirect is correct now.

Thank you very much!


Rafael

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

More
10 years 8 months ago #1448 by admin
Replied by admin on topic Please, need help with a redirect rule
Perfect!!!

Kind regards,
Luigi

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

Time to create page: 0.086 seconds