• Resolved murphyman

    (@murphyman)


    Hello!

    I have this problem: I’ve installed WP 3.1 using Fantastico Software. Everything seems to be ok, but when i go to the final url i only see a list of files instead of the final result:


    http://www.sdfcrew.cl/wordpress/

    The same for the cpanel, just a list of files… i’ve done the work several times with no other result than this.

    I installed WP for other site with no problem… what happens???

    Any help, please????

Viewing 6 replies - 1 through 6 (of 6 total)
  • In your .htaccess file add
    DirectoryIndex index.php index.html
    on first line

    .htaccess is a hidden file so you need to allow hidden files to be seen.

    govpatel,

    What if there is no .htaccess?

    murphyman,

    You’re probably gonna do it twice. I suppose you want to turn on permalinks for your website and when you activate it, wordpress will automatically recreate .htaccess file. So, try to login to your admin panel first and set permalinks. And then do what govpatel suggested. If it fails, then you need to create .htaccess file in the wordpress folder and place such line there:

    DirectoryIndex index.php index.html

    After that you’ll be able to log in to your admin panel and set permalinks, and this action as I said before will recreate .htaccess, so you’ll need to access it again and place this string in the beginning of it (and don’t delete other lines there):

    DirectoryIndex index.php index.html

    govpatel,

    What if there is no .htaccess?

    murphyman,

    What server are you using as windows server will not have one then you will need to check with your host on how to use mod_rewite to rewrite your urls

    .htaccess file is there it will always be there in a cpanel as cpanel creates it automatically even if it is blank as soon as you delete it and next time log in cpanel you will see it back there.

    Only time .htaccess will have content is when you set your permalinks in wordpress admin panel.

    This problem is related to .htaccess. Make sure that you have .htaccess file on your server root. If there is no .htaccess file then create a new file with the name .htaccess. And paste the following code in it:

    # BEGIN WordPress
    
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress

    govpatel,

    There were no questions about mod_rewrite… .htaccess file will not appear magically. It will appear if you create it, if wordpress creates it, or may be if there are some settings in cpanel that will create it using .sh or something like that. For example, I’ve never seen automatically created .htaccess files by cpanel or other panel before. It depends on some kind of server customization. May be you were lucky to see such behavior at some hosting company.

    Thread Starter murphyman

    (@murphyman)

    Thanks a lot!

    I changed .htaccess and everything began to work!!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘I can't see the blog, just the files’ is closed to new replies.