× Here you can get community support related to ReDJ.

Redirect URLs With Special Characters

  • stealthbits
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 6 months ago #1586 by stealthbits
Redirect URLs With Special Characters was created by stealthbits
Hi,

Is there a way to create a redirect rule using ReDJ to redirect from a url using special characters like this:

http://domain/Documentation/Help/index.html#!Documents/

Would I have to escape the # and ! first in order for it to work? I'm currently using this as the redirect rule in ReDJ with no luck: ^/Documentation/Help/index.html#!Documents/$

Any ideas,

Thanks

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

More
10 years 6 months ago #1587 by admin
Replied by admin on topic Redirect URLs With Special Characters
Hi,
all the part after # is an anchor, and is never sent to server, but stays on the client side, so there's no way to match this kind of URLs, just because you will never get these. Check your access log and you will see.

In your case the #! is a new way to tell spiders how to index AJAX content. It is required when you create single page apps like mobile apps and you need to be indexed by spiders. More info here:

developers.google.com/webmasters/ajax-crawling/docs/getting-started

Kind regards,
Luigi

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

Time to create page: 0.111 seconds