Shorten the URL from example.com/page.php?var=letters to example.com/letters
问题 I'm kinda new to URL Rewriting in .htaccess , and I tried to do it myself following some tutorials. No success though .... I want to shorten http://www.example.com/page.php?var=letters to http://www.example.com/letters ( letters is only an example). Any help is very welcomed. Can't get this done myself. :( 回答1: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f # if the requested file does not exist RewriteRule ^(.+)$ page.php?var=$1 # rewrite the request </IfModule