Directory issue

Discussion in 'Site & Server Administration' started by Klikkit, Jul 2, 2013.

  1. #1
    I'm currently having issues with a customer site on my GoDaddy hosting (it's terrible).

    I've moved their wordpress site to my HostGator hosting, it's working fine, but where a URL should usually show a page (modernlanguages.org/crosswords) it's showing it as a directory list.

    See pictures:

    GoDaddy: http://puu.sh/3thwP

    HostGator: http://puu.sh/3tjDh.png

    What would cause this? The folder permissions on Godaddy seem to be 705 with 604 on the files, whereas HostGator is giving 755/644, but even when I match the permissions to be exact I still get the same issue?
     
    Klikkit, Jul 2, 2013 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Hello there,

    Have you verified that all of the files were moved over? From the directory listing on HG, I don't see an index file, just directories. You could be missing an .htaccess file as well that rewrites the url as well.

    Regards,
    Chris
     
    RHS-Chris, Jul 2, 2013 IP
  3. Klikkit

    Klikkit Member

    Messages:
    69
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #3
    My .htaccess file looks like this;

    # BEGIN s2Member GZIP exclusions
    <IfModule mod_rewrite.c>
        RewriteEngine On
        RewriteBase /
        RewriteCond %{QUERY_STRING} (^|\?|&)s2member_file_download\=.+ [OR]
        RewriteCond %{QUERY_STRING} (^|\?|&)no-gzip\=1
        RewriteRule .* - [E=no-gzip:1]
    </IfModule>
    # END s2Member GZIP exclusions
     
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
     
    # END WordPress
    
    PHP:
     
    Klikkit, Jul 2, 2013 IP
  4. Klikkit

    Klikkit Member

    Messages:
    69
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    43
    #4
    Also, what index file should there be? there is no index file on my GoDaddy version, it's a straight swap.

    Modernlanguages.org/crosswords/ should display a wordpress page not the documents in the directory
     
    Klikkit, Jul 2, 2013 IP