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

[eluser]sree777[/eluser]
How can i avoid index.php???
#2

[eluser]Sean Gates[/eluser]
Can you expound on that?
#3

[eluser]sree777[/eluser]
This is the page i got hw to avoid this index.php http://localhost/certificate/administrat....php/login
to

http://localhost/certificate/administrator/login.html
#4

[eluser]WanWizard[/eluser]
That requires URL rewriting, which is explained in the manual (and numerous posts here).
#5

[eluser]sree777[/eluser]
But its not working well.............i had put this code in htacces file

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|img|css|js|script|robots\.txt)
RewriteRule ^(.*)$ /certificate/index.php/$1 [L]
</IfModule>
#6

[eluser]Zeeshan Rasool[/eluser]
Remove index.php from config.php file and use htaccess as given below.
Code:
Options +FollowSymLinks
Options -Indexes
DirectoryIndex ./index.php
RewriteEngine on

RewriteCond $1 !^(index\.php|images|css|robots|\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L,QSA]

Hope it works !
#7

[eluser]WanWizard[/eluser]
If your CI application is installed in the folder 'certificate', add
Code:
RewriteBase /certificate
and change your rule to the one in Zeeshan's example.




Theme © iAndrew 2016 - Forum software by © MyBB