CodeIgniter Forums
Subdomain on shared hosting - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Choosing CodeIgniter (https://forum.codeigniter.com/forum-8.html)
+--- Thread: Subdomain on shared hosting (/thread-73647.html)



Subdomain on shared hosting - dennis89e - 05-17-2019

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


RE: Subdomain on shared hosting - php_rocs - 05-17-2019

(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.


RE: Subdomain on shared hosting - Susan Burling - 10-16-2019

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.


RE: Subdomain on shared hosting - AndreiCurelaru - 10-16-2019

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.