Welcome Guest, Not a member yet? Register   Sign In
remove index.php from url
#1

[eluser]a7med.she7ata[/eluser]
jow can i remove index.php from my url
i am using this htaccess code
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|style|robots\.txt)
RewriteRule ^(.+)$ /other/fire/index.php?$1 [L]

it already disappered but i use redirect function the index.php appears again
#2

[eluser]treeface[/eluser]
Have you changed this line in your config file:

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

to this...

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

[eluser]Luis Perez[/eluser]
try with this:
Code:
<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /

    # Send request via index.php (not if its a real file or folder)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
#4

[eluser]a7med.she7ata[/eluser]
[quote author="treeface" date="1278979552"]Have you changed this line in your config file:

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

to this...

Code:
$config['index_page'] = "";
[/quote]

no but i changed it now and it works very well thank you my friend
#5

[eluser]a7med.she7ata[/eluser]
[quote author="Luis Perez" date="1278980176"]try with this:
Code:
<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteBase /

    # Send request via index.php (not if its a real file or folder)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
[/quote]

thank you my friend but the previous reply solved the problem




Theme © iAndrew 2016 - Forum software by © MyBB