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

[eluser]pisio[/eluser]
Hello, I am again with my stupid questions.
How can I hide index.php on addressbar?
http://localhost/index.php/home/view => http://localhost/home/view
http://localhost/index.php/register/step1 =>: / / localhost/register/step1
.........
View more topics in the forum and wiki but way out there do not work.
Or just shows me wellcome class or error 500.
What to do?
I hope that will help me again.

P.S : http://ellislab.com/forums/viewthread/162634/
I looked this , but doesn't work for me...
#2

[eluser]Yorick Peterse[/eluser]
Put this in your .htaccess file and all your problems should be solved (given that mod_rewrite is working):

Code:
<IfModule mod_rewrite.c>

        Options +FollowSymLinks
        RewriteEngine on

        # Send request via index.php (again, not if its a real file or folder)
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d

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

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

</IfModule>
#3

[eluser]pisio[/eluser]
[quote author="Yorick Peterse" date="1280547830"]Put this in your .htaccess file and all your problems should be solved (given that mod_rewrite is working):

Code:
<IfModule mod_rewrite.c>

        Options +FollowSymLinks
        RewriteEngine on

        # Send request via index.php (again, not if its a real file or folder)
        RewriteCond %{REQUEST_FILENAME} !-f
        RewriteCond %{REQUEST_FILENAME} !-d

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

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

</IfModule>
[/quote]
LOl, that's work.
Tnx Smile You're the best Smile




Theme © iAndrew 2016 - Forum software by © MyBB