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

Re: [Off Topic] /~user... redirect to a new URL



On Thu, 10 Dec 1998, Robert V. MacQuarrie wrote:

 : 
 : 
 : Sorry for the off topic question
 : 
 : Pretty much what the topic is.. how can you redirect a /~user and all the
 : subdirs to a new URL? It has to be possible but i have not found anything
 : other then simple file redirects. Again sorry for the completely off topic
 : question but as I stated, there doesnt seem to be any way to do this.

Something like this?  It rewrites "www.midco.net/~user" to
"home.midco.net/~user" ...

RewriteEngine on
RewriteRule ^/~(.+) http://home.midco.net/~$1 [R,L]

--
Nathan Norman
MidcoNet  410 South Phillips Avenue  Sioux Falls, SD
mailto:finn@midco.net           http://www.midco.net
finger finn@home.midco.net for PGP Key: (0xA33B86E9)



Reply to: