Can host be extracted from referer in mod_rewrite for htaccess / apache?
Posted
by phobia
on Stack Overflow
See other posts from Stack Overflow
or by phobia
Published on 2010-06-06T21:12:45Z
Indexed on
2010/06/06
21:22 UTC
Read the original article
Hit count: 237
I'm trying to do a rewrite where I need the host part of the HTTP_REFERER.
So if the referer is e.g. http://www.example.com/some/path I need to extract the host part, www.example.com and use it in the RewriteRule, so that it rewrites to /some/serverpath/www.example.com/subfolder.
Is this possible?
© Stack Overflow or respective owner