Forum Moderators: phranque

Message Too Old, No Replies

Rewrite

         

dev99

6:39 pm on Apr 17, 2004 (gmt 0)

10+ Year Member



Hi

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

jdMorgan

1:31 am on Apr 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



dev99,

Welcome to WebmasterWorld [webmasterworld.com]!

Try this search [google.com] to get started.

Ref: Introduction to mod_rewrite [webmasterworld.com]

Jim

dev99

3:38 am on Apr 18, 2004 (gmt 0)

10+ Year Member



hi

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

jdMorgan

4:51 am on Apr 18, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



In accordance with our forum charter [webmasterworld.com], we can point you in the right direction and answer specific questions about problems with your code, but we can't write your code for you.

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