WordPress.org

Ready to get started?Download WordPress

Forums

Where is .htaccess and index.php file ? (9 posts)

  1. Ferozkhanhamid
    Member
    Posted 6 years ago #

    At the wordpres extended upgrade instructions page here : http://codex.wordpress.org/Upgrading_WordPress_Extended

    It says this : .htaccess file--if you have added custom rules to your .htaccess, do not delete it;
    # robots.txt file--if your blog lives in the root of your site (ie. the blog is the site) and you have created such a file, do not delete it.

    Where do i find .htaccess, robots.txt and index.php files ? iam using Filezilla. Iam hosting on http://www.free10gb.com

    On the wordpress.org Blog, they aslo say this : modify your theme to add tag support.
    SO, WHERE DO I FIND THE THREE ABOVE FILES, AND HOW DO I MODIFY MY THEME TO ADD TAG SUPPORT ?

    PS. I DONT KNOW A BIT OF PROGRAMMING .CODING
    PLEASE SOMEONE HELP ME !!!

  2. shadow
    Member
    Posted 6 years ago #

    Create a .htaccess file in a text editor and upload it to your root. It can be empty to start.

    Same with your robots.txt but with whatever code you need - refer to your own resource for that.

    index.php - 2 of them. One in the root which you rarely ever need to touch and one in your theme directory which will be used in many different ways.

  3. Ferozkhanhamid
    Member
    Posted 6 years ago #

    In the upgrade instructions, it says to not delete these files. But there are no files. so, do i need to create them ? I don't know what they are for, or whether i need them.

  4. shadow
    Member
    Posted 6 years ago #

    You certainly need the index files and if you are going to be using permalinks you will need the .htaccess file

    The robots.txt file is your choice.

  5. omikami
    Member
    Posted 6 years ago #

    Shadow,

    If my WordPress install resides in a subdirecory, do I put the robots.txt and the .htaccess file I created in the subdirectory or the main directory? The main directory is not relevant to the subdirectory. I host several sites/blogs/etc. on one server account but desire them to be treated differently by robots, as well as, have a different permalink structures.

  6. moshu
    Member
    Posted 6 years ago #

    The .htaccess ALWAYS in the directory where WP is installed.

  7. drew3000
    Member
    Posted 6 years ago #

    Sorry, I guess I'm not getting this either. I'm using permalinks and don't seem to see a .htaccess file anywhere. It's suddenly interesting to me because our host, Site5, says:

    "...as you may know, the PHP Group has marked PHP 4 for end-of-life on December 31, 2007.

    Later this year, we will be transitioning our servers to use PHP 5 as the default. If you are using the .htaccess method to currently use PHP 5, you will then be able to safely remove that from your .htaccess file. If you are using the .php5 extension, that will continue to work."

    A) should I worry about this at all?

    B) What must be done if anything to keep the site working?

  8. moshu
    Member
    Posted 6 years ago #

    If you are just using the standard htaccess created by WP - I think you shouldn't worry.

  9. Jeremy Clark
    Moderator
    Posted 6 years ago #

    your .htaccess file is probably hidden. If your using an ftp client like filezilla you might have to change some options to be able to view hidden files.

    A) WordPress is written to work in both PHP 4 & 5
    B) Nothing, unless something breaks then come back to forums and we can help you out.

    Edit: Moshu's faster.

Topic Closed

This topic has been closed to new replies.

About this Topic