500 error non 404

Discussion in 'WordPress' started by NYSkyline, Dec 3, 2010.

  1. #1
    I just moved a site i've been creating on my localhost online after some inital bumps in road a got the links to go to domain.com/page instead of localhost/page
    now when I go to the page domain.com/page I get a 500 error

    I got the phone with the hosting company who had no idea what was going on and had them delete the .htacess file b/c I for some reason couldn't see it when I ftp to the site

    After I had them delete it i now get a 404 not found error when try to follow link such as domain.com/page and thats where I am at

    Please help, any suggestions are helpful
     
    NYSkyline, Dec 3, 2010 IP
  2. craiger22

    craiger22 Well-Known Member

    Messages:
    1,472
    Likes Received:
    99
    Best Answers:
    0
    Trophy Points:
    170
    #2
    It sounds like you had something broken in your htaccess file. However, it must be there if you are using url re-writing.

    So to solve your problem create an .htaccess file with the following.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress
    Code (markup):
     
    craiger22, Dec 3, 2010 IP
  3. NYSkyline

    NYSkyline Peon

    Messages:
    72
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I just tried that, it was very weird; I created the .htaccess which saved as .htaccess.txt and when I FTP'd to the site and uploaded it, the .htacess file showed up in the folder for about one second before disappearing?..? Could this be how the server is set up?
     
    NYSkyline, Dec 3, 2010 IP
  4. craiger22

    craiger22 Well-Known Member

    Messages:
    1,472
    Likes Received:
    99
    Best Answers:
    0
    Trophy Points:
    170
    #4
    Hidden files (.htaccess) could be blocked by your servers ftp protocol, this normally indicates something is broken.

    What ftp program are you using? If you are using filezilla click on Server (in the top bar) and check Force show hidden files.
     
    craiger22, Dec 4, 2010 IP
  5. sushil koli

    sushil koli Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Do one thing clean your public html and reupload your wordpress site again
     
    sushil koli, Dec 4, 2010 IP