× Here you can get community support related to ReDJ.

beginner regular expression

  • arathra
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 6 months ago #1659 by arathra
beginner regular expression was created by arathra
I've been playing with this but can't quite get it to work.

I need to catch from URLs which match these:

/index.php/stuff
/index.php/more_stuff
/index.php/evenmore_stuff

I'm trying this in my from URL:

/index.php/.*stuff

But it won't get any of them. I understood the dot-asterisk was none or more occurances of any char but it doesn't seem to work.

Thanks!

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

More
10 years 6 months ago #1661 by admin
Replied by admin on topic beginner regular expression
Hi,
you should use this regexp syntax:

dev.mysql.com/doc/refman/5.1/en/regexp.html

So the rule could be:
^/index\.php/.*stuff$

But even your rule should works. Let me know if you still get troubles...

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

  • arathra
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 6 months ago #1692 by arathra
Replied by arathra on topic beginner regular expression
It's just not doing it for me. I've posted a screenshot of the settings.

Whenever I test it with this URL: www.mydomain.com/index.php/CV

it goes to 404
Attachments:

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

More
10 years 6 months ago #1693 by admin
Replied by admin on topic beginner regular expression
Try this:
From URL: ^/index\.php/CV$
To URL: http://{siteurl}/index.php/...

Be sure to use absolute destination.

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

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

  • arathra
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 6 months ago #1694 by arathra
Replied by arathra on topic beginner regular expression
Thanks - I have a feeling it is to do with caching. Sometimes it works, sometimes it doesn't. Let me investigate further!

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

More
10 years 6 months ago #1696 by admin
Replied by admin on topic beginner regular expression
Ok,
I'm here if you need help...

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

Time to create page: 0.106 seconds