Welcome Guest, Not a member yet? Register   Sign In
Codeigniter URLs not working
#1

[eluser]bikuta[/eluser]
I just copied over a copy of CI 1.6.2 to my webserver and the default page comes up fine, however when I add index.php/welcome, it gives me a 404 page not found error.

I thought doing that is supposed to call the welcome controller. Could it be because I'm running it on an older version of PHP/Apache?
#2

[eluser]Jamie Rumbelow[/eluser]
Try changing the uri_request method in your config file to REQUEST_URI.
#3

[eluser]bikuta[/eluser]
Nope I tried all the other values as well, still not working.

I put the CI installation in a sub folder, i.e., not in the root folder, would that make a difference?
#4

[eluser]Yash[/eluser]
I put the CI installation in a sub folder, i.e., not in the root folder,
?? yes this can be ur problem..

give me ur web directory tree
#5

[eluser]bikuta[/eluser]
httpdocs
- ..
- ..
- ..
- hopechurch
-- obs

does that help? what exactly do you need when u say directory tree?

So basically 'obs' is the folder that contains the CI application.
#6

[eluser]bramb79[/eluser]
I think you have to be a little more specific here. Your site is in the "obs" folder, you are viewing your site at: http://www.yoursite.com/obs/index.php ?

You mention one page working (the default page) but not your welcome controller: index.php/welcome/ (try adding the slash at the end!)?

What is your default page then? Your default controller is defined in your Routes config file?

Try adding the slash please (so index.php/welcome/). If that does not work, please give more information.
#7

[eluser]bikuta[/eluser]
my site looks like this:
http://www.yoursite.com/hopechurch/obs/index.php

the default controller is still welcome, I have not changed anything from the default CI installation.
I'm just trying to make sure it's working before I start implementing my code.
#8

[eluser]bramb79[/eluser]
Did you try adding the slash?
#9

[eluser]bikuta[/eluser]
yes I did, no joy
#10

[eluser]bramb79[/eluser]
Yeah, that should not have made a real difference (but worth trying).

So http://www.yoursite.com/hopechurch/obs/index.php does display your welcome controller, but http://www.yoursite.com/hopechurch/obs/i...hp/welcome does not display anything?
Or both are not displayed?

I am assuming the latter. Did you check file permissions on the folders/files? Did you try a .html file (maybe php is not allowed)? Did you check if there is a .htaccess (or apache config) that is not allowing any new subfolders?

Sorry for the amount of questions but I am puzzled here as well.




Theme © iAndrew 2016 - Forum software by © MyBB