frist44 Posted March 9, 2009 Share Posted March 9, 2009 I'm trying to rewrite a URL so that it doesn't include the filename. Take www.domain.com/page.php?a=4 to www.domain.com/pg?a=4 For some reason I can't get it right. I have: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^pg$ page.php [L] and it's not doing it. any ideas? Quote Link to comment Share on other sites More sharing options...
frist44 Posted March 10, 2009 Author Share Posted March 10, 2009 I figured it out. The file was actually in a lower level, so the subfolder name was needed before the filename. Quote Link to comment 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.