CodeIgniter Forums

Full Version: Subdomain on shared hosting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello all,

I read something about codeigniter on Stackoverflow, and want to use it on a shared hosting.
But my question is, will subdomains keep working then? Because I installed Symfony, but then my subdomains are broken.

Best regards,
Dennis
(05-17-2019, 09:15 AM)dennis89e Wrote: [ -> ]Hello all,

I read something about codeigniter on Stackoverflow, and want to use it on a shared hosting.
But my question is, will subdomains keep working then? Because I installed Symfony, but then my subdomains are broken.

Best regards,
Dennis

Absolutely! CI is very flexible and can be used in many different ways.
This is most simply done by using a subdomain for the staging version, i.e. staging.doman.com. The folder where you put the CI files isn't important as the subdomain will be set to use the directory you choose.
You will either need to have full control over the server or have a service provider that allows you to set up subdomains.
I actually use CodeIgniter locally, and indeed testing also in Shared Hosting folder.
If your subdomain point at that folder and you put the right "base_url" in Config/App.php then should be fine.