RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1

my url = localhost/mvc/
i work on windows in xampp i have a problem when i go to my url /404 i thinks i am on localhost/ so it redirects me to localhost/xampp/splash.php

but it will work if i write index.php/404

If your website is installed in http://localhost/mvc, you need to set the rewrite base:

RewriteEngine On
RewriteBase /mvc/
commented: Thx +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.