Rewrite rule to keep old url after changing username

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

during my recent re-install of our server (it is running Apache 2.2) i changed my username from old_uname to new_uname. I would like that my webaddress is still accessible under the old address
http://host/~old_uname

Looking through the docs I decided to go with the rewrite routine. I was trying the following in /etc/apache2/mods-available:

created file called rewrite.conf and added:
	RewriteEngine on
	RewriteRule ^/~old_uname(.*) /~new_uname$1 [L,PT]

created two softlinks in mods-enabled. I find this not to work after a restart of the webserver. Now I am wondering, is this the right way of implementing the rewrite rule, i.e. in a file rewrite.conf in mods- available or could there be a problem with the userdir.conf module that I have also enabled or maybe something else?

Many thanks, Jan

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux