hey, I'd like to rewrite urls like these: from /page.php?var=x to /x Could you post the exact .htaccess code for this? thanks
RewriteEngine On Options +FollowSymLinks RewriteRule ^([a-zA-Z0-9-_]+)/?$ page.php?var=$1 [NC,L] Code (markup):
thanks, but it's not exactly it. This just adds a redirect, but when I go to /x it just redirects to the old url: /page.php?var=x. I'd like a permanent redirect. So all the old urls are redirected to new ones now.