Welcome Guest, Not a member yet? Register   Sign In
I can not remove index.php form URL
#1

[eluser]Arockia Raj[/eluser]
Hi,

I am new to CI

I tried to remove index.php from URL. But i can't.

Plz help me

my .htaccess

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

my config.php
Code:
$config['base_url']    = 'http://localhost/edu3/';
$config['index_page'] = '';
$config['uri_protocol']    = 'AUTO';

I uncommented the line
Code:
LoadModule rewrite_module modules/mod_rewrite.so
in httpd

I am using xampp1.6.7
Plz help me with step by steps.


Regards,
Arockia Raj
#2

[eluser]toopay[/eluser]
Look at this thread
#3

[eluser]Arockia Raj[/eluser]
Still i am confused. Plz help me with step by step process

Regards,
Arockia Raj
#4

[eluser]toopay[/eluser]
Where you put CI? in your htaccess you write '/ci...' but in config you write 'http://localhost/edu3/' as base url. Which one is right?
#5

[eluser]Arockia Raj[/eluser]
Thank you. My project name is edu3.

Now my .htaccess is
Code:
<IfModule mod_rewrite.c>
Options -Indexes

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

My config.php
Code:
$config['base_url']    = 'http://localhost/edu3/';
$config['index_page'] = '';
$config['uri_protocol']    = 'AUTO';

I uncommented the line in in httpd
Code:
LoadModule rewrite_module modules/mod_rewrite.so

But still i am getting the below error
Error 404
localhost
04/12/11 13:22:25
Apache/2.2.6 (Win32) DAV/2 mod_ssl/2.2.6 OpenSSL/0.9.8g mod_autoindex_color PHP/5.2.5

Plz help me.

Regards,
Arockia Raj
#6

[eluser]toopay[/eluser]
Change your .htaccess to...
Code:
RewriteEngine On
RewriteBase /edu3/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) edu3/index.php?/$1
#7

[eluser]Arockia Raj[/eluser]
Hi,

Thank you for your reply.

Even i change the above .htaccess , still same error coming

I do not know what mistake i have done.

But it is very urgent for me.

Regards,
Arockia Raj
#8

[eluser]Unknown[/eluser]
i think technical person can help you regarding this error.

Thanks.
Jason.
eLearning
#9

[eluser]toopay[/eluser]
Code:
RewriteEngine On
RewriteBase /edu3/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) /edu3/index.php?/$1
#10

[eluser]toopay[/eluser]
And this thread might be helpfull for you...




Theme © iAndrew 2016 - Forum software by © MyBB