Re: [users@httpd] Rewrite inside Location directive

2011-04-03 Thread Jose Legido
On Sat, Apr 2, 2011 at 5:38 PM, Rich Bowen wrote: > > > > > > RewriteRule  ^/old(.*) http://%{HTTP_HOST}//new  [PT] > > > > By the way, there are much better ways to do this. Basically what you're > saying there is > Alias /old /path/to/new > > which would be more efficient Thanks for all respo

Re: [users@httpd] Rewrite inside Location directive

2011-04-02 Thread Rich Bowen
RewriteRule ^/old(.*) http://%{HTTP_HOST}//new [PT] By the way, there are much better ways to do this. Basically what you're saying there is Alias /old /path/to/new which would be more efficient

Re: [users@httpd] Rewrite inside Location directive

2011-04-02 Thread Rich Bowen
On Apr 1, 2011, at 2:28 PM, Jose Legido wrote: Hello I want to make a Rewrite into a Location directive, but looks at filesystem, I want to redirect: RewriteRule ^/old(.*) http://%{HTTP_HOST}//new [PT] Outside of Location works. Outside of location works because that's the right was t

Re: [users@httpd] Rewrite inside Location directive

2011-04-02 Thread Michele Mase'
>From the official documentation: http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html#rewriterule Context: server config, virtual host, directory, .htaccess ... Although rewrite rules are syntactically permitted in

[users@httpd] Rewrite inside Location directive

2011-04-01 Thread Jose Legido
Hello I want to make a Rewrite into a Location directive, but looks at filesystem, I want to redirect: RewriteRule ^/old(.*) http://%{HTTP_HOST}//new [PT] Outside of Location works. Thanks! - The official User-To-User suppo