Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] After redirection index.php is visible again
#1

[eluser]yabune[/eluser]
Hi,

I have my .htaccess working and index.php is hidden.
But after making a redirect the index.php is visible again.

Here it is my .htaccess:
Code:
RewriteEngine on
RewriteCond $1 !^(index\.php|assets|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]

Thanks!
#2

[eluser]Alur[/eluser]
Once your .htaccess is working, you should edit your config file (system/application/config/config.php) and change:

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

to:

Code:
$config['index_page'] = '';



Check this link: http://codeigniter.com/wiki/mod_rewrite/
#3

[eluser]yabune[/eluser]
Thanks!

Now it's working!




Theme © iAndrew 2016 - Forum software by © MyBB