CodeIgniter Forums
Processing of multiple domain names? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Processing of multiple domain names? (/showthread.php?tid=63089)



Processing of multiple domain names? - xijuzhiwang - 09-24-2015

http://www.codeigniter.com/user/123456

Member Center was previously linked so now we need to make this

http://123456.codeigniter.com

123456 is a member ID, how do I resolve this location? Each and every user has their own subdomain?

Sorry, I use translation, hoping to get help!

THX!


RE: Processing of multiple domain names? - skunkbad - 09-25-2015

If you have apache mod rewrite available, you could use a rewrite rule:


Code:
RewriteRule ^user/(.*)$ http://$1.codeigniter.com [R,L]