Forums

Giving WordPress its Own Directory While Leaving Your Blog in the Root Directory (9 posts)

  1. jcounsellor
    Member
    Posted 1 year ago #

    I need specific help with finding the proper index.php file to copy and modify in the root directory. This is right after a new installation.

    Where is it? I thought I'd figured this out, but opening in TextEdit it says 'silence is golden'. I think this is from wp-content, apparently I've copied or overwritten something wrong.

    Thanks for any help or illuminating questions.

  2. govpatel
    Member
    Posted 1 year ago #

    It is the index.php file that in your wordpress directory along with wp-config.file copy that file in your root and add a folder name in line 17 only in root index.php.

  3. jcounsellor
    Member
    Posted 1 year ago #

    Thank you for your reply.

    To clarify:
    1. copy the index.php file
    and
    2. copy the wp-config.php file to the root directory?

  4. Samuel B
    moderator
    Posted 1 year ago #

    actually you want to move them - copying will give you 2 of each - not wanted

  5. govpatel
    Member
    Posted 1 year ago #

    @Samuel if one wants to use wordpress from a directory then you need copy index.php file and .htaccess in root and change line 17 and add folder in index.php in root.

    @jcounsellor you do not need to copy wp-config.php looks like I made mistake in my post above about wp-config,php

    You will find instructions here

    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  6. jcounsellor
    Member
    Posted 1 year ago #

    Thanks for the responses and link. I understand the concept of the procedure now.

    However, the part of the question I originally posted is still unclear:

    When I originally copied and moved the "index.php" file to my root directory and opened it with TextEdit it only contained the "silence is golden" line. There was no code.

    This is what I don't understand.

  7. Samuel B
    moderator
    Posted 1 year ago #

    When I originally copied and moved the "index.php" file to my root directory and opened it with TextEdit it only contained the "silence is golden" line.

    that would be theme's index.php
    you want the wordpress index.php in same folder as wp-config.php

  8. jcounsellor
    Member
    Posted 1 year ago #

    Got it! Thanks for the help and patience.

  9. govpatel
    Member
    Posted 1 year ago #

    You are welcome

Topic Closed

This topic has been closed to new replies.

About this Topic