change username but keep address of personal homepage with oldusername?

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 ...


Go Back   Usenet Forums > Web Server and Related Forums > Linux Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-07-2008
j.steinbrener@googlemail.com
 
Posts: n/a
Default change username but keep address of personal homepage with oldusername?

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
  #2 (permalink)  
Old 02-07-2008
Jim Hayter
 
Posts: n/a
Default Re: change username but keep address of personal homepage with oldusername?

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
  #3 (permalink)  
Old 02-07-2008
j.steinbrener@googlemail.com
 
Posts: n/a
Default Re: change username but keep address of personal homepage with oldusername?


> 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:04 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0