Forum Moderators: phranque

Message Too Old, No Replies

Need Subdomain Rewrite

www.mydomain.com/user instead of user.mydomain.com

         

litS

10:55 am on May 27, 2005 (gmt 0)



My codes

RewriteEngine On
#RewriteBase /
RewriteRule ^([a-zA-Z0-9]+)$ artist.php?action=showprofile&user_name=$1&%{QUERY_STRING}

This codes now working. (http://www.mydomain.com/user)

how is codes [user.mydomain.com...]

Sorry my english.

jd01

7:16 pm on May 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi litS,

I am not sure I understand what, exactly, you are trying to do...

It looks like you would like to serve information to a sub-domain, from a main domain. If this is the case, could you please give an example of how you see the process working?

EG
Will the subdomain be served from individual directories on the main domain, if so, what variable(s) will need to be passed to the main domain for the files to be processed correctly?

Or will all subdomains be served from a single php file, by passing variables?

I'm sure it's tough trying to communicate in another language, but please try to give us some more information, so we can help you out.

Justin