Maybe this is simple enough I want to redirect static page http://mysite.com/?staticpage to http://otherdomain.com i had try some rule like below but still dont get the working rule, please help guys what is the right rule or using quotes around still not working
Looks like you are doing everything right. You might have to escape the ? with Redirect 301 /\?staticpage http://otherdomain.com Code (markup): But I wouldn't think that would be necessary. You might want to check the placement of the file. Is it named ".htaccess" and located at root of your public_html or html folder? Do you use the .htaccess file for other things that are working correctly?
Since this is in the PHP forum, why not just drop a <?php header("HTTP/1.1 301 Moved Permanently"); header("Location: http://www.example.com"); exit(); ?> PHP: at top? If you want only for ?staticpage, if(isset($_GET['staticpage']))?
This is how my .htaccess file looks: # send a 301 redirect if index.html is requested RewriteEngine On RewriteRule ^index.html$ http://otherdomain.com/ [R=301,L] hth