Welcome Guest, Not a member yet? Register   Sign In
index.php problem, i've searched on internet for hours and dont find solution
#1

[eluser]Berzacola[/eluser]
As the title describes, i've searched on internet for a solution to my problem, but , any of the solutions what i found works for me, so let me tell you my current scenario:

i have this url:

http://localhost/site/index.php/urah/archive

i can access normaly , if i try to acess like this:

http://localhost/site/urah/archive

i meet one 404 error, so, what will be the solution!? my appache rewrite is working, i tested it with a test.php trying to get a $_GET param trough the rewrite, and it works.

i realy dont know what to do, i've tryed all the solution i saw, including the wiki's one.

regards.
#2

[eluser]alexwenzel[/eluser]
Try this:

First, try this .htacces:

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

</IfModule>

<IfModule !mod_rewrite.c>
    ErrorDocument 404 /index.php
</IfModule>

Then goto your config.php and empty the following array:

Code:
$config['index_page'] = '';
#3

[eluser]tpetrone[/eluser]
It's in the user guide.

http://ellislab.com/codeigniter/user-gui.../urls.html

#4

[eluser]Berzacola[/eluser]
The problem persists... Sad

i will upload it to my server and try from there, you thing it can change something?!
#5

[eluser]Berzacola[/eluser]
Problem solved !!!! ... i fell like an idiot, i was editing the .htaccess on the application folder, no the .htaccess on the main index.php folder
#6

[eluser]alexwenzel[/eluser]
[quote author="Berzacola" date="1350089128"]The problem persists... Sad

i will upload it to my server and try from there, you thing it can change something?![/quote]

I dont think so. I guess you have a mistake in your .htaccess.
Can you post your .htaccess file?




Theme © iAndrew 2016 - Forum software by © MyBB