Title: Redirect site to new URL
Last modified: August 30, 2016

---

# Redirect site to new URL

 *  [imimike](https://wordpress.org/support/users/imimike/)
 * (@imimike)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/admin-13/)
 * Hi all,
 * I need some help on a client that I developed a while back. I had set up the 
   website and everything for the client already. However, recently she wanted to
   switch her wordpress website, to “blog spot”.
 * Instead of transferring domain name and what not, she accidentally went to settings
   in the admin page (wp-admin) to “general” and deleted the site URL or the WordPress
   URL (she cant recall which one).
 * Doing that her website is still available, however, whenever she types in wp-
   admin it no longer lets her go to the log in page but instead it takes her directly
   to the “wordpress.org.
 * Does anyone know or been in this situation. Please let me know, and thank you
   so much in advance.

Viewing 1 replies (of 1 total)

 *  [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * (@leejosepho)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/admin-13/#post-6550706)
 * I have never been in that situation, but I would likely try this in functions.
   php:
 * Select and edit one pair of lines or the other — no trailing slashes — then temporarily
   place a slash after `/*toggle on/off*` just above them to un-comment them and
   make them active.
 *     ```
       /*-either-*/
       /* tell database to recognize and use http://domain.com
       /** @ near top of theme functions.php /*toggle on/off*
       update_option('siteurl','http://domain.com');
       update_option('home','http://domain.com');
       /*-or-*/
       /* tell database to recognize and use http://www.domain.com
       /** @ near top of theme/functions.php /*toggle on/off*
       update_option('siteurl','http://www.domain.com');
       update_option('home','http://www.domain.com');
       /*-end-*/
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Redirect site to new URL’ is closed to new replies.

## Tags

 * [admin](https://wordpress.org/support/topic-tag/admin/)
 * [delete](https://wordpress.org/support/topic-tag/delete/)
 * [login](https://wordpress.org/support/topic-tag/login/)
 * [password](https://wordpress.org/support/topic-tag/password/)
 * [settings](https://wordpress.org/support/topic-tag/settings/)
 * [site url](https://wordpress.org/support/topic-tag/site-url/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [leejosepho](https://wordpress.org/support/users/leejosepho/)
 * Last activity: [10 years, 6 months ago](https://wordpress.org/support/topic/admin-13/#post-6550706)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
