scvinodkumar Posted November 5, 2009 Share Posted November 5, 2009 The subject line says it all. Anyone know where to find info to accomplish this? For example, i have a main site test.com and if i create sub-domain(sub.test.com) then it should point to same files and database as test.com. Link to comment https://forums.phpfreaks.com/topic/180372-new-subdomain-same-code-base-and-data-base-but-different-users/ Share on other sites More sharing options...
trq Posted November 5, 2009 Share Posted November 5, 2009 Best achieved with mod_rewrite, nothing php can do as its too late in the process. Something like.... RewriteEngine on RewriteCond %{HTTP_HOST} ^http://sub.yoursite.com$ RewriteRule ^(.*)$ http://yoursite.com [L] Link to comment https://forums.phpfreaks.com/topic/180372-new-subdomain-same-code-base-and-data-base-but-different-users/#findComment-951586 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.