Welcome Guest, Not a member yet? Register   Sign In
Apache: Object not found
#1

[eluser]flokky[/eluser]
Hi, I have created a CI based website on my laptop, which is a Windows driven machine.

Now I wanted to place the site on my Linux computer. The page comes on good, no error, stuff is fetched from the database. But when I click on ANY link, Apache is giving me the
Code:
Object not found!
The requested URL was not found on this server.
The link on the referring page seems to be wrong or outdated.
Please inform the author of that page about the error.
If you think this is a server error, please contact the webmaster
Error 404
error.

Can please someone point me in the right direction to look for this problem? I don't see any errors in the log file in the logs directory.

Thanks
#2

[eluser]flokky[/eluser]
Can please someone help me?
The site is currently located at http://kothasselt.no-ip.org:8080/

Thanks
#3

[eluser]CI Lee[/eluser]
Do you have some weird .htaccess file set up?
#4

[eluser]flokky[/eluser]
I've used FreakAuth in that site for authenticating users

This is what I used for the mod_rewrite, placed in .htaccess
Code:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond $1 !^(index\.php|public|tmp|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>

As indicated below the page : http://www.4webby.com/freakauth/document...light.html
#5

[eluser]CI Lee[/eluser]
Lets start ruling things out...

Try taking the .htaccess out, and see if your links work again.
#6

[eluser]flokky[/eluser]
At the moment, I'm unable to log in on the server, but I'm pretty sure I tried without the .htaccess because I didn't had that file on my Win env. It was only after searching on the Freak Auth en CI site I added that file.

I'm not sure if my Apache httpserver supports mod_rewrite. I've created a phpinfo page maybe you can see some things which might be wrong.

That page is viewable at
Code:
http://kothasselt.no-ip.org:8080/test.php

I appreciate your help, so thank you!

EDIT:I've noticed I have PHP version 4.2.2. Is that version high enough? Could that explain my problem?
#7

[eluser]flokky[/eluser]
As a follow-up, I removed the .htaccess file, but that didn't change the problem I'm facing.

I'm still looking round, but I really have no clue what could be the cause of my problem. I've noticed when I fiddle around with the url, Apache is doing something wrong.

This results in a 404
Code:
http://kothasselt.no-ip.org:8080/forgottenpass.html

When I change this a bit like this will work
Code:
http://kothasselt.no-ip.org:8080/index.php?forgottenpass

Is there someone who can help me with this rather small - but tasty problem?
#8

[eluser]flokky[/eluser]
As a final post to this problem, I've managed to 'workaround' this problem.

I've tried re-installing Apache, PHP to the latest possible version (for RH9 server), NOTHING worked.

I tried placing it on other servers and that worked without any problem.

A few hours ago I've got enlighted:

As explained in my previous post using the question mark and then the parameter seemed to work.

First I've added the ?

Code:
$config['index_page'] = "index.php?";

Secondly I've removed the suffix html

Code:
$config['url_suffix'] = "";

Et voila, it worked!
Finally found a solution after 5 days (luckily hobby time Wink )
#9

[eluser]Valdemar[/eluser]
I had a similar problem with my migration from win to linux. It turned out that the .htaccess along with a suffix just doesn't seems to work fine.

Removing the suffix did the trick.




Theme © iAndrew 2016 - Forum software by © MyBB