This is a discussion on change username but keep address of personal homepage with oldusername? within the Linux Web Servers forums, part of the Web Server and Related Forums category; Hi to all, I'm sure there has to be an easy way of doing this but I am fairly ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi to all,
I'm sure there has to be an easy way of doing this but I am fairly new to Apache so it would be great if someone could help me with this: I recently reinstalled our server and during that process I decided to give myself a new username. Now of course my personal homepage, which used to be at http://domainname/~old_username now is at http://domainname/~new_username It would be great if there was a way to configure Apache (2.2 that is) to automatically redirect visitors that try to load my homepage with the old address to the new one. I was thinking some sort of Alias would do the trick or maybe a redirect, but I can't figure out how. Thanks, Jan |
|
|||
|
j.steinbrener@googlemail.com wrote:
> Hi to all, > > I'm sure there has to be an easy way of doing this but I am fairly new > to Apache so it would be great if someone could help me with this: > > I recently reinstalled our server and during that process I decided to > give myself a new username. > Now of course my personal homepage, which used to be at > > http://domainname/~old_username > > now is at > > http://domainname/~new_username > > It would be great if there was a way to configure Apache (2.2 that is) > to automatically redirect visitors that try to load my homepage with > the old address to the new one. I was thinking some sort of Alias > would do the trick or maybe a redirect, but I can't figure out how. > > Thanks, Jan Try this (untested): Redirect permanent /~old_username /~new_username Jim |
|
|||
|
> Redirect permanent /~old_username /~new_username Thanks but tried it, didn't work. Also tried specifying full URL name Redirect permanent http://domain/~old_name http://domain/~new_name Didn't work either. I have a hunch that it somehow cannot resolve the '~' (which is interpreted using userdir in userdir.conf) in the redirect command Again, any help would be great |
| Thread Tools | |
| Display Modes | |
|
|