Support » Installing WordPress » Need clarification.

  • Resolved steve-d

    (@steve-d)


    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)
  • 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

    Thread Starter steve-d

    (@steve-d)

    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?

    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

    (@steve-d)

    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.