I'm using a .htaccess file to redirect only example.com/script-dir/index.php (with www and without) to example.com/index.php, but it also redirects example.com/script-dir/index.php?page=faq and other pages. What should I do to redirect only that single page?
You can do a 301 redirect in PHP. Any way you can make this sort of code only show up in just the one you want to redirect? <?php header("HTTP/1.1 301 Moved Permanently"); header("Location: http://example.com/index.php"); ?>
For the suggestion above, I'd suggest just checking to see if $_GET['page'] is set, and if it's not, or empty, redirect.