Title: Need clarification.
Last modified: August 19, 2016

---

# Need clarification.

 *  Resolved [steve-d](https://wordpress.org/support/users/steve-d/)
 * (@steve-d)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/need-clarification/)
 * Domain’s **root HTAccess file**.
 * Here is my install structure.
 * /
    htdocs wpblog
 * There is an htaccess in htdocs and one in wpblog.
 * Example . . wp security specialists say . . “Place the code below in your domain’s
   root .htaccess file”
 * I need to clarify **ROOT**.

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

 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/need-clarification/#post-1484211)
 * [http://codex.wordpress.org/Using_Permalinks#Where.27s_my_.htaccess_file.3F](http://codex.wordpress.org/Using_Permalinks#Where.27s_my_.htaccess_file.3F)
 * _“WordPress’s index.php and .htaccess files should be together in the directory
   indicated by the Blog address (URI) setting on your General Options page”
 * If you are serving wordpress from “root” of your _domain_, but keeping the files
   in the subdirectory, you will need to have copies of index.php and htaccess (
   with some modification) in your domain root, or /htdocs … I hope I got that right.
   🙂
 * [Giving WordPress its Own Directory While Leaving Your Blog in the Root Directory](http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory)
 *  Thread Starter [steve-d](https://wordpress.org/support/users/steve-d/)
 * (@steve-d)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/need-clarification/#post-1484213)
 * Well in the htaccess in htdocs it has . .
 * Options -Indexes
 * in the htaccess in wpblog it has
 * # BEGIN WordPress
    <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond%{
   REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.
   php [L] </IfModule>
 * # END WordPress
 * So which one is my ROOT htaccess?
 *  [Clayton James](https://wordpress.org/support/users/claytonjames/)
 * (@claytonjames)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/need-clarification/#post-1484217)
 * As I mentioned above, and the documentation suggests, the root of your wordpress
   site is /wpblog, if you have wordpress installed in the directory “wpblog”.
 * That is the directory where wordpress will create/update your .htaccess file.
 * If you are _not_ giving wordpress it’s own directory, and serving it from the
   root of your _domain_ ( /htdocs ) I can’t think of a reason why a wordpress .
   htaccess file would need to be located in /htdocs. It should be in /wpblog, where
   all of your wordpress files are located.
 *  Thread Starter [steve-d](https://wordpress.org/support/users/steve-d/)
 * (@steve-d)
 * [16 years, 1 month ago](https://wordpress.org/support/topic/need-clarification/#post-1484221)
 * This is a click and install Hosting provider WordPress install. For some reason
   their is an htaccess in htdocs. The code in it says ‘Options -Indexes’. The blog
   is a sub folder of htodocs. One level lower. So the other htaccess is one level
   lower in wpblog.
 * So that would be my root in this setup. And I would paste my htaccess security
   enhancement codes like this . . ?
 * RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L] </IfModule>
 * # END WordPress
 * ‘security enhancement codes’
    <Files ~ “^.*\.( etc . . etc
 * LOL I know this is crazy. I’ve gone from knowing nothing about WP 8 weeks ago
   other then “it looks credible” to now being able to get around in SQL-PHP-WP-
   SFTP, etc. Yet I overlooked this one stupid fine detail. I’m stuck.
 * I’ll pay someone at this point to tell me! Name your fee!

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

The topic ‘Need clarification.’ is closed to new replies.

## Tags

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

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 2 participants
 * Last reply from: [steve-d](https://wordpress.org/support/users/steve-d/)
 * Last activity: [16 years, 1 month ago](https://wordpress.org/support/topic/need-clarification/#post-1484221)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
