Advertisement
xpeed

if site redirect diffrent url

May 11th, 2015
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. To escape the redirect, add the following code in functions.php:
  2.  
  3. add_action('init', 'xs_repair_backup_redirect');
  4.  
  5. function xs_repair_backup_redirect(){
  6. $your_site_url = 'http://my-site.com';
  7. update_option('siteurl', $your_site_url);
  8. update_option('home', $your_site_url);
  9. }
  10. replace http://my-site.com with your address, and after login delete this code.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement