× Here you can get community support related to ReDJ.

ReDJ - unable to 301 urls that contain "?"

  • Joogleweb
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago #2 by Joogleweb
Issue:
I have been using ReDJ for a while with success to handle my 404s. Great plugin. Recently, I have had new 404s show up in GWT, so I added them to ReDJ. Unfortunately, it seems like any urls that contain a question mark "?" failed to get rerouted.

For example, origin URL: joogleweb.com/component/newsfeeds/12-planet-mysql?catid=6&catalias=related-projects
Which is configured in ReDJ as: component/newsfeeds/12-planet-mysql?catid=6&catalias=related-projects

Another, URL: joogleweb.com/roxer.php?url=http%3A%2F%2Fjoogleweb.com%2F
Configured: roxer.php?url=http%3A%2F%2Fjoogleweb.com%2F

And another very wierd URL: joogleweb.com/http%3A%2F%2Fjoogleweb.com%2Four-blog%2F150-new-custom-tlds-explained-in-6-minutes&title=New+custom+TLD's+Explained+in+6+minutes
Configured multiple different ways.

If you have any suggestions to make these url's able to be 301'd, it would be much appreciated.

Thanks.

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

More
12 years 8 months ago #3 by admin
Hi,
you should consider that the rule is a regular expression so the question mark is a special char. To specify a literal ? you must escape it, so replace any "?" with "\?".

Kind regards,
Luigi

P.S. You are the first user on this new forum, congratulations... :)

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

  • Joogleweb
  • Topic Author
  • Offline
  • New Member
  • New Member
More
12 years 8 months ago #4 by Joogleweb
Replied by Joogleweb on topic Re: ReDJ - unable to 301 urls that contain "?"
Thank you very much for the reply and help. That worked for a url with a "?" in the url.

However, I am still having issues with URLs with "%"

For example:

URL: joogleweb.com/roxer.php?url=http%3A%2F%2Fjoogleweb.com%2F
Configured as: roxer.php\?url=http%3A%2F%2Fjoogleweb.com%2F

URL: joogleweb.com/http%3A%2F%2Fjoogleweb.com%2Four-blog%2F141-historic-hopewell-foundation&title=Historic+Hopewell+Foundation
Configured as: http%3A%2F%2Fjoogleweb.com%2Four-blog%2F141-historic-hopewell-foundation&title=Historic+Hopewell+Foundation


I am also having issue with this url

URL: joogleweb.com/~taw/?page_id=7
Configured as: ~taw/\?page_id=7

Thanks again for the reply, let me know what you think about these.

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

More
12 years 8 months ago #5 by admin
Hi,
about the encoded chars (with %) consider that the URL on the server is normally decodec first (if not specified as in Tag Meta). So you should create the rule using the decoded chars. I mean use a space if there's a %20.

On the second question:

URL: joogleweb.com/~taw/?page_id=7
Configured as: ~taw/\?page_id=7


Use this rule:
From URL: ^/~taw/\?page_id=7$

If this doesn't work, maybe there's another item that matches with a lowest order. In this case, check all your rules. If the problem persists, send me a dump of ReDJ table at info(at)selfget.com.

Kind regards,
Luigi

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

Time to create page: 0.136 seconds