EllisLab text mark
Advanced Search
     
index.php problem, i’ve searched on internet for hours and dont find solution
Posted: 12 October 2012 08:24 PM   [ Ignore ]
Joined: 2012-10-12
5 posts

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.

 
Posted: 12 October 2012 08:36 PM   [ Ignore ]   [ # 1 ]   [ Rating: 0 ]
Avatar
Joined: 2011-10-12
107 posts

Try this:

First, try this .htacces:

<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:

$config['index_page'''
 
Posted: 12 October 2012 08:37 PM   [ Ignore ]   [ # 2 ]   [ Rating: 0 ]
Joined: 2012-01-04
20 posts

It’s in the user guide.

http://ellislab.com/codeigniter/user-guide/general/urls.html

 
Posted: 12 October 2012 08:45 PM   [ Ignore ]   [ # 3 ]   [ Rating: 0 ]
Joined: 2012-10-12
5 posts

The problem persists… :(

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

 
Posted: 12 October 2012 08:52 PM   [ Ignore ]   [ # 4 ]   [ Rating: 0 ]
Joined: 2012-10-12
5 posts

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

 
Posted: 12 October 2012 08:52 PM   [ Ignore ]   [ # 5 ]   [ Rating: 0 ]
Avatar
Joined: 2011-10-12
107 posts
Berzacola - 12 October 2012 08:45 PM

The problem persists… :(

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

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