Title: Php, redirecting &amp; missing site
Last modified: August 21, 2016

---

# Php, redirecting & missing site

 *  [ttkove](https://wordpress.org/support/users/ttkove/)
 * (@ttkove)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-redirecting-missing-site/)
 * Hi!
    I was trying to update my site (www.ttkove.com). I wanted to import the 
   posts from my blog (blog.ttkove.com/blog/), which I managed to do. However, when
   I took away the link on my blog, page, it still redirected to the blog.
 * So I went into the functions.php of my theme and wrote this right at the top,
   after the <?php:
    update_option(‘siteurl’,’[http://ttkove.com/blog&#8217](http://ttkove.com/blog&#8217););
   update_option(‘home’,’[http://blog.ttkove.com/blog/&#8217](http://blog.ttkove.com/blog/&#8217););
 * I must’ve read the instruction wrong, because once I saved, my entire site redirected
   to the blog site, and now I can’t even get back into the wp-admin page of ttkove.
   com.
 * Can anyone help me, what do I do? How I can I get my site back?!
 * (I think I have WordPress 3.5.1. Could have a newer one…)

Viewing 1 replies (of 1 total)

 *  Thread Starter [ttkove](https://wordpress.org/support/users/ttkove/)
 * (@ttkove)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/php-redirecting-missing-site/#post-4348917)
 * I know about this: [Changing the Site URL](http://codex.wordpress.org/Changing_The_Site_URL),
   but it doesn’t help. It was thanks to this it was fucked up to begin with, and
   now I can’t get my site back.

Viewing 1 replies (of 1 total)

The topic ‘Php, redirecting & missing site’ is closed to new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)
 * [redirecting](https://wordpress.org/support/topic-tag/redirecting/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [ttkove](https://wordpress.org/support/users/ttkove/)
 * Last activity: [12 years, 6 months ago](https://wordpress.org/support/topic/php-redirecting-missing-site/#post-4348917)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
