CodeIgniter Forums
Uploading CI app into a subfolder - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Uploading CI app into a subfolder (/showthread.php?tid=7422)



Uploading CI app into a subfolder - El Forum - 04-08-2008

[eluser]Andy Harris[/eluser]
Hi. I have a working CI app locally in MAMP and I've just uploaded it to a staging area to test it, and I'm running into problems.

I've changed my /config/config.php to the new root, including the subfolder name. When I submit my form it tries to go to:

Code:
http://website.com/recommend/form

And I get a 404. As if it's looking for a document, and failing to fire the form method. Similarly, I can access the page at:

Code:
http://website.com/recommend/index.php

But not at:

Code:
http://website.com/recommend/index

Is there anything obvious I've missed?


Uploading CI app into a subfolder - El Forum - 04-08-2008

[eluser]Tom Glover[/eluser]
Have you hard code the UR into the submit button instead of using the URL helpers?

That may be your problem your form may be looking for the old location as it was hard coded.

One other thing, how are your routes set up and have you left the controller in the old file.


Uploading CI app into a subfolder - El Forum - 04-08-2008

[eluser]Andy Harris[/eluser]
Ahh, just sorted it - I needed to pop an htaccess file into the subfolder and set the base to be said subfolder. Or something like that - it worked anyway!

Cheers for the assist though.