Welcome Guest, Not a member yet? Register   Sign In
Help removing index.php
#1

[eluser]The Lurker[/eluser]
I've gone through at least 15 tutorials and nothing's working. I can't get it to work on localhost (xampp) or on my with my current webhost (fatcow.com).

I've modded apache, added an htaccess, changed the uri_protocol to REQUEST_URI, changed the index_page to ''. I have no idea what else to do, it just isn't working.

I'd appreciate any help, it's driving me insane.
#2

[eluser]The Lurker[/eluser]
After some digging, I think maybe my .htaccess isn't working for some reason (both locations), but how do I go about fixing that?
#3

[eluser]smilie[/eluser]
Hm, only thing I can think of is that your Xampp (more specificly Apache) is not allowing .htaccess to overwrite rules.

You could otherwise place your code from .htaccess directly into the Apache config file (most probably in the virtual_hosts.conf or such).

Regards,
Smilie
#4

[eluser]vitoco[/eluser]
First check that mod_rewrite is loaded :
1.- create a phpinfo.php file and put
Code:
<?
phpinfo();
?>

Search for "Loaded Modules" and check that "mod_rewrite" it's in the list.

2.- check that .htaccess can overwrite rules , file apache2.conf
Code:
<Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory [path/to/htdocs]>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                Allow from all
        </Directory

3.- use this .htaccess that works fine for me

Code:
Options +FollowSymLinks

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

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

Saludos
#5

[eluser]The Lurker[/eluser]
[quote author="vitoco" date="1289590725"]

3.- use this .htaccess that works fine for me

Code:
Options +FollowSymLinks

RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

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

[/quote]

That's awesome, thank you! It works perfectly! =D




Theme © iAndrew 2016 - Forum software by © MyBB