Rewrite only external requests to a certain URL
        Posted  
        
            by Cyclone
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Cyclone
        
        
        
        Published on 2010-04-06T01:05:51Z
        Indexed on 
            2010/04/06
            1:13 UTC
        
        
        Read the original article
        Hit count: 399
        
.htaccess
|mod-rewrite
I want to rewrite from http://example.com/blah/<something>/<somethingelse> to http://<something>.example.com/<somethingelse>, but only if the request is not an internal redirect. How can I achieve this effect? I know I can use %{THE_REQUEST}, but I can't seem to find any good examples.
Thanks for the help!
© Stack Overflow or respective owner