Welcome Guest, Not a member yet? Register   Sign In
Removing the index.php doesn't work
#1

[eluser]Evollution[/eluser]
So i created .htacces and added code :


Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]

and i cant acces http://www.fifago.com/go/main :\


mod_rewrite is installed on my server {becouse i created a aplication without any framework and i know that it works but now i don't know why it doesnt work
#2

[eluser]predat0r[/eluser]
Maybe set RewriteBase ?
If your index.php is in root dir, then "RewriteBase /" wo/ quotes
#3

[eluser]guidorossi[/eluser]
try

Code:
DirectoryIndex index.php
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /ci_install_folder
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>
<IfModule !mod_rewrite.c>
  ErrorDocument 404 index.php
</IfModule>
#4

[eluser]dstegelman[/eluser]
There was a routing bug in 2.0 The issue has since been resolved if you download the source from bitbucket.

https://bitbucket.org/ellislab/codeigniter-reactor
#5

[eluser]Mario Rojas[/eluser]
Instead of this

Code:
RewriteRule ^(.*)$ /index.php/$1 [L]

Try to delete the slash before index.php

Code:
RewriteRule ^(.*)$ index.php/$1 [L]
#6

[eluser]Basketcasesoftware[/eluser]
[quote author="Mario Rojas" date="1296643482"]Instead of this

Code:
RewriteRule ^(.*)$ /index.php/$1 [L]

Try to delete the slash before index.php

Code:
RewriteRule ^(.*)$ index.php/$1 [L]
[/quote]

I actually got the same results by putting a "." before the slash, but it's the same thing. Using the dot is just more in keeping with XPATH.

I started a similar thread on this same subject. I guess I better download that patch though.
#7

[eluser]InsiteFX[/eluser]
Try this, some servers need the ? :
Code:
AddHandler application/x-httpd-php5 .php

<IfModule mod_php5.c>
    RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>

<IfModule !mod_php5.c>
    RewriteRule ^(.*)$ index.php?/$1 [L,QSA]
</IfModule>

InsiteFX
#8

[eluser]Basketcasesoftware[/eluser]
[quote author="dstegelman" date="1296633336"]There was a routing bug in 2.0 The issue has since been resolved if you download the source from bitbucket.

https://bitbucket.org/ellislab/codeigniter-reactor[/quote]What exactly should I be downloading here? Tip?
#9

[eluser]Evollution[/eluser]
[quote author="guidorossi" date="1296630407"]try

Code:
DirectoryIndex index.php
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /ci_install_folder
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>
<IfModule !mod_rewrite.c>
  ErrorDocument 404 index.php
</IfModule>
[/quote]


txn it worked Smile

1. I created a .htacces file in ci_folder and added this code
you must just change RewriteBase /ci_install_folder with RewriteBase /*****
#10

[eluser]guidorossi[/eluser]
[quote author="Evollution" date="1296666986"][quote author="guidorossi" date="1296630407"]try

Code:
DirectoryIndex index.php
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteBase /ci_install_folder
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</IfModule>
<IfModule !mod_rewrite.c>
  ErrorDocument 404 index.php
</IfModule>
[/quote]


txn it worked Smile

1. I created a .htacces file in ci_folder and added this code
you must just change RewriteBase /ci_install_folder with RewriteBase /*****[/quote]

Glad it worked.
Sorry I forget to tell you to change the "/ci_install_folder" line.




Theme © iAndrew 2016 - Forum software by © MyBB