Title: Root redirect
Last modified: August 20, 2016

---

# Root redirect

 *  [Ian](https://wordpress.org/support/users/ian_moore/)
 * (@ian_moore)
 * [14 years ago](https://wordpress.org/support/topic/root-redirect/)
 * Rightly or wrongly, I built metalpress.co.uk in a sub folder (/wp/) so that the
   existing html site could remain live throughout the process. Of course I was 
   then faced with the whole moving the site debacle on completion and effectively
   had to start again when I got it badly wrong at the first attempt and lost all
   access and, as it appeared, everything!
    For urgencies sake I have used a simple.
   htaccess redirect (“DirectoryIndex /wp/index.php”) to the sub folder, which works
   for now but once into the site all the URL address strings display the mis-rooted
   directory. Is there any simple solution to this? Either moving the site out of
   the sub folder (terrified to try that again!) or affecting the page URLs should
   I stick with the redirect.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years ago](https://wordpress.org/support/topic/root-redirect/#post-2767325)
 * See [Giving_WordPress_Its_Own_Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory#Using_a_pre-existing_subdirectory_install).
 *  Thread Starter [Ian](https://wordpress.org/support/users/ian_moore/)
 * (@ian_moore)
 * [14 years ago](https://wordpress.org/support/topic/root-redirect/#post-2767327)
 * Thanks esmi. I tried that but the redirect didn’t work. The .htaccess file would
   disappear after a few seconds of upload and not have any effect.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years ago](https://wordpress.org/support/topic/root-redirect/#post-2767338)
 * Then contact your hosts. You seem to have a server-related issue.
 *  Thread Starter [Ian](https://wordpress.org/support/users/ian_moore/)
 * (@ian_moore)
 * [14 years ago](https://wordpress.org/support/topic/root-redirect/#post-2767349)
 * Just have. They say they have limited htaccess capability as they don’t run Apache(?!).
   Some work, some don’t. They couldn’t explain why the file disappeared though.
 *  [Te Calleja](https://wordpress.org/support/users/tecreative/)
 * (@tecreative)
 * [14 years ago](https://wordpress.org/support/topic/root-redirect/#post-2767356)
 * What I did before was move everything to the root (say, from [http://www.mydomain.com/wp/](http://www.mydomain.com/wp/)
   to [http://www.mydomain.com](http://www.mydomain.com)). Then I edited the phpmyadmin
   wp_options table — I looked for all instances of [http://www.mydomain.com/wp](http://www.mydomain.com/wp)
   and changed it to [http://www.mydomain.com](http://www.mydomain.com).
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years ago](https://wordpress.org/support/topic/root-redirect/#post-2767361)
 * > they don’t run Apache (?!).
 * So what are they running?
 *  Thread Starter [Ian](https://wordpress.org/support/users/ian_moore/)
 * (@ian_moore)
 * [14 years ago](https://wordpress.org/support/topic/root-redirect/#post-2767396)
 * Zeus (?!)
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years ago](https://wordpress.org/support/topic/root-redirect/#post-2767399)
 * Ugh 🙁 I hate Zeus with a vengeance! And I certainly wouldn’t recommend it for
   a WP site. As it stands, your only real option will be to try another full site
   move. Make sure that you follow the instructions in [Moving_WordPress](http://codex.wordpress.org/Moving_WordPress)
   and you should be fine.
 *  Thread Starter [Ian](https://wordpress.org/support/users/ian_moore/)
 * (@ian_moore)
 * [14 years ago](https://wordpress.org/support/topic/root-redirect/#post-2767406)
 * OK thanks esmi. It’s at least reassuring that it’s nothing I’m doing wrong.

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Root redirect’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 3 participants
 * Last reply from: [Ian](https://wordpress.org/support/users/ian_moore/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/root-redirect/#post-2767406)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
