• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Multiple domains with one codebase - how to set htaccess file?

#2
I did it in a slight different way.
In DirectAdmin I created different domains (lets say for now domain1.com and domain2.com).

Then when I login into FTP, I got the following structure

/domains
/domains/application
/domains/domain1
/domains/domain1/public_html
/domains/domain2
/domains/domain2/public_html
/system

Then I placed the index.php in every public_html and defined some CONSTANTS with the database connection details (host, user, pwd and port).

Also all index.php points to the same application and system directory. If I update the application or system folder, every project gets the update.
Reply


Messages In This Thread
RE: Multiple domains with one codebase - how to set htaccess file? - by Krycek - 03-06-2019, 06:24 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.