Apache Vhost 301 Redirect with variable -
in apache vhost i'm trying following 301 redirect
redirect 301 /?name=true http://example.com/directory/?fubar&name=true
it compiles correctly , runs, when visit that, apache seems ignore , doesn't work expected.
edit: here config sanitized.
<virtualhost *:80> serveradmin email@email.com documentroot /var/www/html/old-example servername old-example.com errorlog /var/log/httpd/old-example/error.log <directory /var/www/html/old-example> redirect 301 /?name=true http://example.com/directory/?fubar&name=true redirectmatch 301 /(.*) http://example.com/directory/$1?fubar </directory> </virtualhost>
Comments
Post a Comment