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

[eluser]Ryan Zec[/eluser]
I tried adding a htaccess file with:

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

in my root directory of my localhost web server and no get a 500 Internal error. I have looked at the internet and can't find anything, is their a special line i need to put in my apache config file to use .htaccess file? I alos heard that htaccess file are very very slow, it there a different of doing this without htaccess files?

Thanks.
#2

[eluser]PauloBr[/eluser]
First of all, you need enable mod-rewrite in apache.

Look the 3 and 4 points of this wiki.

I think it has no other way to hide this index.php
#3

[eluser]Ryan Zec[/eluser]
Well i just want to do that to test something and don't think i even have the module i need to do that so maybe someone here can help me. When I have the rewrite rule and do $_SERVER['PHP_SELF'] is the index.php still in that variable of no. My guess is yes but want to make sure.




Theme © iAndrew 2016 - Forum software by © MyBB