Forum Moderators: phranque
I have been searching long and hard to find this:
The problem is regarding my apache web server i want to redirect clients to their dir using subdomains.
For ex:
if user goes to:
[mydomain.com...] i want them to be able to go to the same username by typing:
[username.mydomain.com...]
i heared that this could be done by using mod-rewrite but i am not able to find it anywhere.
Thanks
Welcome to WebmasterWorld [webmasterworld.com]!
Try this search [google.com] to get started.
Ref: Introduction to mod_rewrite [webmasterworld.com]
Jim
thanks for such a fast response. I looked through the links you gave me but did not find the same problem as mostly other users had specific usernames that they wanted to redirect I want to redirect all usernames in the folder users:
[mydomain.com...]
so username is like a wildcard and the url should look like:
[username.mydomain.com...]
thanks
The approach developed in the first thread [webmasterworld.com] in the search I provided above is almost exactly what you need to do. I hope you'll experiment with that approach, modify it slightly to suit your specific needs, and learn how it works in the process.
Jim