WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I use .htaccess to redirect requests to my (new) domain to another domain hosted on different server. The file contains:

Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^(www\.)?amazon40\.com [NC]
RewriteRule ^(.*)$ http://steamsigs.com/amazon40/$1 [R=301,L]

The redirection works fine. The home page is redirected to steamsigs.com/amazon40 and wordpress login page shows up correctly (steamsigs.com/amazon40/wp-login.php). But the acutual login process doesn't work. It does not show the control panel and keeps on redirecting to the login page. Could be that something's interfering with the GET/POST vars but I'm not sure about this.

I'd appreciate any your help to resolve this.

share|improve this question

migrated from superuser.com Dec 29 '10 at 7:33

This question came from our site for computer enthusiasts and power users.

Does it work when you remove the htaccess file? – BloodPhilia Dec 28 '10 at 10:58

Did you also change the site URL in the settings? WordPress needs correct settings for these, otherwise the login page on steamsigs.com will still do the post to amazon40.com and you'll never get the correct cookies set.

share|improve this answer
Yes that solved the problem. Thank you. – Gayan Jan 2 '11 at 12:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.