Welcome to WebmasterWorld Guest from 220.127.116.11
Can anybody help me how I can create this? My knowledge about the whole mod_rewrite engine isn't that big, but I tried using the following code.
RewriteRule ^([a-zA-Z0-9]*)$ http://www.mydomain.net/user.php?name=$1
It works, but it redirects the user to the www.mydomain.net domain. However, I want it to keep the user.mydomain.net/username url.
Any help is appreciated.
[edited by: jdMorgan at 2:34 am (utc) on Jan. 8, 2004]
[edit reason] de-linked [/edit]
It is unclear how you wish to map from the new shorter URL to the longer one.
In your target URL (http://user.mydomain.net/username) you have the subdomain "user".
What part of the original URL (http://www.mydomain.net/user.php?name=username) do you want to extract the "user" information from?