× Here you can get community support related to ReDJ.

Redirect a strange url

More
8 years 7 months ago #4208 by lt635
Redirect a strange url was created by lt635
Hello,

I just developed a new website and have been through fixing not found errors from the old site using ReDJ. There is one strange url and I don't know if it is possible to redirect this to http://{siteurl}.

This is the url:
/%5E[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+.[a-zA-Z]%7B2,6%7D$/

Thank you
Kind regards
Lene

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

More
8 years 7 months ago #4209 by admin
Replied by admin on topic Redirect a strange url
Hi Lene,
assuming the regexp is right, there are encoded chars inside, so uncheck "decode url" in the rule and it should work.

Best regards
Luigi

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

More
8 years 7 months ago #4212 by lt635
Replied by lt635 on topic Redirect a strange url
Hi Luigi,

I tried uncheck 'decode url' but that does not work.

Here is the full url as reported from Google webmaster:
www.irlendyslexia.com/%5E[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+.[a-zA-Z]%7B2,6%7D$/

Thanks
Kind regards
Lene

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

More
8 years 7 months ago - 8 years 7 months ago #4214 by admin
Replied by admin on topic Redirect a strange url
Sorry Lene,
I didn't understand the URL is exactly like you wrote. It is a regular expression and this confused me. Let's start again...

The URL you find in the log is:
/%5E[a-zA-Z0-9._-]+@[a-zA-Z0-9.-]+.[a-zA-Z]%7B2,6%7D$/

So this URL starts from the browser encoded as:
/%5E%5Ba-zA-Z0-9._-%5D+@%5Ba-zA-Z0-9.-%5D+.%5Ba-zA-Z%5D%7B2,6%7D$/

You can create a rule to match it as is (decode to false), but you need to escape some special chars, so:
From URL: ^/%5E%5Ba-zA-Z0-9\._-%5D+@%5Ba-zA-Z0-9\.-%5D+\.%5Ba-zA-Z%5D%7B2,6%7D\$
Request only: true (checked)

I have dropped the last / so it will match if this is present or not. I have not tested it, so tell me if still doesn't work.

Kind regards,
Luigi
Last edit: 8 years 7 months ago by admin.

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

More
8 years 7 months ago #4226 by lt635
Replied by lt635 on topic Redirect a strange url
Hello,

Just tested your example, still not working. That is fine, please don't waste any more of your time on this one url.

Thank you
Kind regards
Lene

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

More
8 years 7 months ago #4228 by admin
Replied by admin on topic Redirect a strange url
As you wish,
but if you want to fix it, we can schedule a remote support session and I can help with this.

Kind regards,
Luigi

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

Time to create page: 0.089 seconds