I recently installed a script on one of my sites and am having issues writing a mod_rewrite rule for it. The problem is that every url within the site contains "index.php". For example, http://www.domain.com/index.php/page or even http://www.domain.com/index.php/admin. The directories following index.php don't actually exist so how can I create a more friendly url that doesn't include index.php? I know this has to do with mod_rewrite but I haven't been able to find a specific rule to fix the problem. Does anyone have any suggestions?
hi, the following .htaccess rule should do the trick: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?/$1 [L] Code (markup): just make sure you have mod rewrite enabled in your apache.