httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Shearer" <j...@shearer-family.org>
Subject [users@httpd] mod_rewrite does not change URL in browser
Date Fri, 15 Apr 2011 17:02:18 GMT
I am trying to move a set of documents from one directory to a new directory.  Currently users
are redirected to the new directory but the old URL remains in the browser window.  My research
indicates that if I change the PT flag to R I should be able to do what I want.  However,
when I change the PT to an R, users are not actually redirected to the new directory.  Here
is the VirtualHost configuration:

<VirtualHost www.seconddomain.tld>
ServerName www.seconddomain.tld
DocumentRoot /seconddomain

RewriteEngine on
RewriteLog /var/log/apache2/rewrite.log
RewriteLogLevel 9
RewriteRule ^/oldsite/(.*)\.html /newsite/$1.html [PT,L]

</VirtualHost>


Thanks.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message