Welcome Guest, Not a member yet? Register   Sign In
Uploading CI app into a subfolder
#1

[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?
#2

[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.
#3

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




Theme © iAndrew 2016 - Forum software by © MyBB