Here's my objective. I need to use the Siteworx API to create subdomains for users. Once I do that they will have a subdomain and folder combo like: user1.mydomain.com | /home/mydomain/html/user1
I also have a mod_rewrite rule that takes the data from mydomain.com/data and passes it like mydomain.com/index.php?input=data just like how pastebin and other sites have URLs like pastebin.com/fHu9Ksd. Here's the .htaccess...
RewriteEngine on
RewriteRule ^([^/\.]+)/?$ /?input=$1 [L]
But will this rewrite rule work for people who visit user1.mydomain.com or will it be bypassed? I'm about to run a test and I'm expecting it to not work. The hope though is that when someone visits user1.mydomain.com it will load mydomain.com/index.php?input=user1 without changing what's in the address bad (user1.mydomain.com). Or maybe I should actually just, upon subdomain creation, write an index.php script to /home/mydomain/html/user1.
The end goal of all this is to allow user's subdomains to share the scripts of the platform I'm coding. Obviously copying my entire platform into each subdomain directory is not the answer. I'll run my test and report back. Any advice is welcome.
I also have a mod_rewrite rule that takes the data from mydomain.com/data and passes it like mydomain.com/index.php?input=data just like how pastebin and other sites have URLs like pastebin.com/fHu9Ksd. Here's the .htaccess...
RewriteEngine on
RewriteRule ^([^/\.]+)/?$ /?input=$1 [L]
But will this rewrite rule work for people who visit user1.mydomain.com or will it be bypassed? I'm about to run a test and I'm expecting it to not work. The hope though is that when someone visits user1.mydomain.com it will load mydomain.com/index.php?input=user1 without changing what's in the address bad (user1.mydomain.com). Or maybe I should actually just, upon subdomain creation, write an index.php script to /home/mydomain/html/user1.
The end goal of all this is to allow user's subdomains to share the scripts of the platform I'm coding. Obviously copying my entire platform into each subdomain directory is not the answer. I'll run my test and report back. Any advice is welcome.