Forums

[resolved] localhost main part not showing (6 posts)

  1. lef
    Member
    Posted 1 year ago #

    HI,

    I have just installed on localhost wordpress. I can see the admin part and login but when I goto to the main site nothing appears just a list of the files that exist in the main dir. When I click on index.php nothig happens.

    please anybody help

    thank you,

    Lef

  2. James
    Happiness Engineer
    Posted 1 year ago #

    Try adding this to the top of your .htaccess file:

    DirectoryIndex index.php index.html index.htm

  3. lef
    Member
    Posted 1 year ago #

    Hi James,

    I added what you said but still nothing.

    here what is in my htaccess file with the addition of your line:

    # BEGIN WordPress

    DirectoryIndex index.php index.html index.htm

    RewriteEngine On
    RewriteBase /wordpress/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wordpress/index.php [L]

    # END WordPress

    the script is installed in a directory called wordpress

    thank you,

    Lef

  4. James
    Happiness Engineer
    Posted 1 year ago #

    You need to add it to the very beginning, before # BEGIN WordPress

    If that doesn't work, find your httpd.conf file, locate the DirectoryIndex line, and make the same change to the line.

  5. lef
    Member
    Posted 1 year ago #

    James thank you a lot

    you are brilliant ... it worked ...

    thanx again

    have a nice day

    Lef

  6. James
    Happiness Engineer
    Posted 1 year ago #

    You're welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic