Hi,
I have a apache setup where there is one apache server in the DMZ which acts as a proxy and proxies all requests to the servers inside the firewall.
Now depending on the HTTP_REFERER I want to server the pages from different directories for ex.
if http_referer is is proxied to the downstream server and the documents are served from /a/b/c/d directory.
whereas if the referer is I want to switch the directory to /e/f/g/h, this way I can server different pages for the same url, depending on the referer value.
One site will be a preview site where authors can preview before actually publishing to the production site.
I have the following rule in place however this does not work, appreciate any help for this issue
RewriteCond %{HTTP_REFERER} ^/ [NC]
RewriteRule ^/X/(.*) ^/a/b/c/d/$1 [L]
RewriteCond %{HTTP_REFERER} ^/ [NC]
RewriteRule ^/X/(.*) ^/e/f/g/h/$1 [L]
Thanks,
Mohit
I have a apache setup where there is one apache server in the DMZ which acts as a proxy and proxies all requests to the servers inside the firewall.
Now depending on the HTTP_REFERER I want to server the pages from different directories for ex.
if http_referer is is proxied to the downstream server and the documents are served from /a/b/c/d directory.
whereas if the referer is I want to switch the directory to /e/f/g/h, this way I can server different pages for the same url, depending on the referer value.
One site will be a preview site where authors can preview before actually publishing to the production site.
I have the following rule in place however this does not work, appreciate any help for this issue
RewriteCond %{HTTP_REFERER} ^/ [NC]
RewriteRule ^/X/(.*) ^/a/b/c/d/$1 [L]
RewriteCond %{HTTP_REFERER} ^/ [NC]
RewriteRule ^/X/(.*) ^/e/f/g/h/$1 [L]
Thanks,
Mohit