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.
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.
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?
actually you want to move them - copying will give you 2 of each - not wanted
@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
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.
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
jcounsellor
Member
Posted 1 year ago #
Got it! Thanks for the help and patience.