954,561 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

mvc .htacces problem

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

perfectweb
Newbie Poster
14 posts since Feb 2011
Reputation Points: 10
Solved Threads: 2
 

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

RewriteEngine On
RewriteBase /mvc/
blocblue
Posting Pro in Training
475 posts since Jan 2008
Reputation Points: 142
Solved Threads: 79
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: