andz Posted September 27, 2008 Share Posted September 27, 2008 I have a site with the URL http://localhost/?mode=testing How do I configure the AcceptPathInfo for the url to make http://localhost/testing ??? I'm using Apache on Windows XP. How / Where to configure AcceptPathInfo Thanks Quote Link to comment https://forums.phpfreaks.com/topic/126072-howto-acceptpathinfo/ Share on other sites More sharing options...
wildteen88 Posted September 27, 2008 Share Posted September 27, 2008 You use mod_rewrite for that. Example RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule /(.*) index.php?mode=$1 [NC,L] Quote Link to comment https://forums.phpfreaks.com/topic/126072-howto-acceptpathinfo/#findComment-651936 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.