Forum Moderators: phranque

Message Too Old, No Replies

Htacces how Redirect 301, http://mysite.com/?staticpage to http://otherdomain.com

         

basketmen

5:42 pm on Mar 23, 2010 (gmt 0)

10+ Year Member



Maybe this is simple enough

I want to redirect static page [mysite.com ] to [otherdomain.com ]

i had try some rule like below but still dont get the working rule, please help guys what is the right rule


RewriteEngine On

Redirect 301 /?staticpage [otherdomain.com ]



or using quotes around still not working


RewriteEngine On

Redirect 301 "/?staticpage" [otherdomain.com ]

Readie

6:39 pm on Mar 23, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Wrong forum, but...

Try the following:

RewriteRule ^/?staticpage\.?([a-z0-9]+)?$ http://www.example.com [NC,R=301,L]

For any more questions you have on htaccess I refer you to [webmasterworld.com...]