Welcome Guest, Not a member yet? Register   Sign In
Greetings Earthlings
#1

[eluser]tabatsoy[/eluser]
I tested CI on my localhost and everythings fine but when I uploaded it on my webserver it says an error: 404 Not Found.

Please Help
#2

[eluser]obiron2[/eluser]
Hi Tabatsoy, and welcome to the community.

1) Please give threads meaningful titles, it lets us identify what the problem is and whether it may be something we suffer from or can help with.

2) Please give some more details about your problem. What is your localhost environment, what is your server environment. Have you checked to see whether .htaccess is set up correctly, that PHP is running and the version that you are on etc..

Are you getting the server 404 page or the CI 404 page.

have you read the user guide - you'd be surprised how many don't!

Have you tried putting print statements into the controller to see whether it is being called correctly.

what URL are you entering, that gives you a 404 error message

Obiron
#3

[eluser]tabatsoy[/eluser]
Hi,

My localhost is WAMP and my webserver is using plesk.

I don't know where to find the .htaccess on my webserver and the php version is 4.4.

I have read the CI userguide.

I'm getting the 404 Not Found(The requested document was not found on this server. )

I can only view the index.php but the other pages gives me a 404 error.

I got an error on these links http://mysite.com/main/site/contact where /main/ is the folder and /site/ is the function and /contact is the page

Thanks and Hope to hear from you soon
#4

[eluser]obiron2[/eluser]
Quote:where /main/ is the folder and /site/ is the function and /contact is the page

do you mean /main is the controller, /site is the function and /contact is the argument?

for the sake of simplicity, your index.php should be in your root folder (normally htdocs) as should the system and application folders.

.. root (you can't go any higher than this)
../index.php
../system
../system/helpers
../system/libraries etc..
../application
../application/controllers
../application/views
../application/helpers
../application/libraries
../application/models

etc..


what do you get if you go to http://mysite.com

try

http://mysite.com/index.php/main/site/contact
or
http://mysite.com/main/index.php/main/site/contact

Obiron

If that works then it is the .htaccess file. Read the manual and then come back to us

Obiron
#5

[eluser]tabatsoy[/eluser]
Hi there,

I really think it's the htaccess file. Where can I find the manual for the htaccess file and can you please guide me because I don't know how to create an htaccess and where to put it on my webserver.
#6

[eluser]wolffc[/eluser]
The last post in this thread should help you http://ellislab.com/forums/viewthread/69506/P15/

It contains what you need to put in your .htaccess file. And to create one just make a file named .htaccess at the same level as the index.php file.




Theme © iAndrew 2016 - Forum software by © MyBB