Welcome Guest, Not a member yet? Register   Sign In
mod-rewrite
#1

[eluser]aclm[/eluser]
Quick question.
I am setting up CI on a server.
Everything was tested locally on my laptop just fine.
The problem is that I am receiving this error in my log:

No such file or directory in /public_html/index.php on line 122

The site is being hosted with GatorHost.com and I believe my .htaccess is incorrect,
code below.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?$1 [L] <-- Note! this is actually correct with the "?"
</IfModule>

AddHandler application/x-httpd-php5 .php
AddHandler application/x-httpd-php .php4

Any ideas?

Much Appreciated.
#2

[eluser]Sawariya[/eluser]
Check in your config.php file
#3

[eluser]aclm[/eluser]
Ok can you point me in the right direction of the file?
#4

[eluser]aclm[/eluser]
Update.

I changed the .htaccess file to the one dream host uses and thought that might work for gator host.
Looks like the navigation is working fine but the css and the graphics are not loading up properly.

.htaccess code:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond $1 !^(index\.php)
RewriteRule ^(.+)$ index.php?$1 [L]
</IfModule>

AddHandler application/x-httpd-php5 .php
AddHandler application/x-httpd-php .php4


Any ideas?

Thank you Smile
#5

[eluser]aclm[/eluser]
Finally got it to work. Sort of...

Only problem is that it doesn't load my flash files and I'm getting an error when the form is submitted. Error below:

The URI you submitted has disallowed characters.

URL in browser:
http://www.website.com/?number=&number=5...x=103&y=29

Besides that everything seems to work. But I need to get those other things working.

If you are hosting with gatorhost.com you need to have the .htaccess file in the public_html.

Below is the code:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1 [L]
</IfModule>

AddHandler application/x-httpd-php5 .php
AddHandler application/x-httpd-php .php

Thank you




Theme © iAndrew 2016 - Forum software by © MyBB