Thursday, 8 August 2013

Configuring apache to send user to another site?

Configuring apache to send user to another site?

Is it possible to change this script to send users to another site incase
the _escaped_fragment_ is present?
RewriteEngine On
RewriteCond %{REQUEST_URI} ^/$
RewriteCond %{QUERY_STRING} ^_escaped_fragment_=/?(.*)$
RewriteRule ^(.*)$ /snapshots/%1? [NC,L]
e.g. Could the last line be rewritten so it sends the user to
http://foo.bar.com/?url=the-full-url-with-hashbangs
that is, I want to recreate the "pretty url" from the escaped fragment,
and pass that entire url to another site. That site contains static
snapshots that should be returned to the users browser.

No comments:

Post a Comment