Title: Hide wordpress folder
Last modified: August 18, 2016

---

# Hide wordpress folder

 *  [digeart](https://wordpress.org/support/users/digeart/)
 * (@digeart)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/hide-wordpress-folder/)
 * Ok…
 * So I’ve install wordpress on my server in the folder /blog
    I’ve made my [http://www.domain.com](http://www.domain.com)
   point to /blog I’ve enabled permalinks so my posts are like this… [http://www.mydomain.com.au/2007/01/new.html](http://www.mydomain.com.au/2007/01/new.html)
 * Which is good and all, but now [http://www.domain.com/blog](http://www.domain.com/blog)
   list all the folder contents. I just want it to redirect to [http://www.domain.com](http://www.domain.com)
 * my .htaccess file..
 * <IfModule mod_rewrite.c>
    RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME}!-
   f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule
   >

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

 *  [chinatour](https://wordpress.org/support/users/chinatour/)
 * (@chinatour)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/hide-wordpress-folder/#post-501752)
 * It would be easier to move your blog to the root folder.
 *  [cmm225](https://wordpress.org/support/users/cmm225/)
 * (@cmm225)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/hide-wordpress-folder/#post-501764)
 * Just put an index.html page in the /blog folder, if you want it to redirect, 
   you can use
 * Redirect /blog [http://mydomain.com](http://mydomain.com)
 * in you .htaccess file
 *  [cmm225](https://wordpress.org/support/users/cmm225/)
 * (@cmm225)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/hide-wordpress-folder/#post-501767)
 * Actually, I tried the redirect, and it kind of knocked my style out.
 * But if you put an index.html file and used a simple redirect code in the header,
   that may work. I don’t know, maybe someone else should try.
 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/hide-wordpress-folder/#post-501784)
 * You cannot have an index.html in the root of the WP install!
 *  Thread Starter [digeart](https://wordpress.org/support/users/digeart/)
 * (@digeart)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/hide-wordpress-folder/#post-501798)
 * I thought there might be a way to .htaccess it, and say anything that ends in
   blog then redirect it…
 * eg..
 * [http://mydomain.com/blog/](http://mydomain.com/blog/)
 * would redirect
 * but not
 * [http://mydomain.com/blog/wp-login.php](http://mydomain.com/blog/wp-login.php)
 *  Thread Starter [digeart](https://wordpress.org/support/users/digeart/)
 * (@digeart)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/hide-wordpress-folder/#post-501799)
 * “It would be easier to move your blog to the root folder.”
 * It would, yes. But that’s not the point.
 * I’d then end up with loose files and folders, making my root very hard to find
   files.
 *  [cmm225](https://wordpress.org/support/users/cmm225/)
 * (@cmm225)
 * [19 years, 4 months ago](https://wordpress.org/support/topic/hide-wordpress-folder/#post-501996)
 * “You cannot have an index.html in the root of the WP install!”
 * Well, that’s a surprise since it works for me.
 * We may be thinking differently, but I’ve got no problems with it there.
 * The install and blog address are different….
 *  [ravetildon](https://wordpress.org/support/users/ravetildon/)
 * (@ravetildon)
 * [19 years, 1 month ago](https://wordpress.org/support/topic/hide-wordpress-folder/#post-502226)
 * [http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)

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

The topic ‘Hide wordpress folder’ is closed to new replies.

## Tags

 * [folder](https://wordpress.org/support/topic-tag/folder/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [redirect](https://wordpress.org/support/topic-tag/redirect/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 8 replies
 * 5 participants
 * Last reply from: [ravetildon](https://wordpress.org/support/users/ravetildon/)
 * Last activity: [19 years, 1 month ago](https://wordpress.org/support/topic/hide-wordpress-folder/#post-502226)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
