Forum Moderators: phranque

Message Too Old, No Replies

How can I change /~username to /usr/username?

         

koei

12:04 pm on Mar 13, 2004 (gmt 0)



Been having some trouble trying to get this to work...
I am trying to get the default www.mydomain.com/~blah to change to the form www.mydomain.com/usr/blah where blah would be a user on the linux box. I am not sure if this is doable by rewrite. Can anyone give me some tips on how this can be done?

woro2006

10:28 pm on Mar 13, 2004 (gmt 0)

10+ Year Member



I am trying to get the default www.mydomain.com/~blah to change to the form www.mydomain.com/usr/blah

if you actually read the apache rewrite guide, you will find the solution to your question. Although it's not exaclty the same, it is very similiar.

I will give you a hint
RewriteRule ^~(.*) to the requested url

jdMorgan

4:37 am on Mar 15, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



koei,

Welcome to WebmasterWorld [webmasterworld.com]!

Here's the Apache URL Rewriting Guide [httpd.apache.org] that woro2006 mentioned.

Jim