404 Not Found Problem with all .php files I upload

Discussion in 'WordPress' started by My220x, Jan 24, 2010.

  1. #1
    If I upload any .php files to the same directory as wordpress then I get the wordpress 404 error page when trying to access it. It works fine for image files. Any ideas?
     
    My220x, Jan 24, 2010 IP
  2. welshgirl2

    welshgirl2 Well-Known Member

    Messages:
    266
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    130
    #2
    Hiya My220x

    A few more details might help me to solve your problem for you.
    What is the URL for your blog?
    For what purpose is the php file?
    and where exactly are you trying to upload it?

    Thanks
     
    welshgirl2, Jan 24, 2010 IP
  3. Wp-Mod.Com

    Wp-Mod.Com Peon

    Messages:
    381
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #3
    give us the link then we can say what is the problem
     
    Wp-Mod.Com, Jan 24, 2010 IP
  4. My220x

    My220x Member

    Messages:
    624
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #4
    My220x, Jan 24, 2010 IP
  5. sandeepdude

    sandeepdude Well-Known Member

    Messages:
    1,741
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #5
    Its because of the .htaccess file...


    Unfortunately,I dunno much about it...:(
     
    sandeepdude, Jan 26, 2010 IP
  6. My220x

    My220x Member

    Messages:
    624
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #6
    Yeah I thought it might be but I'm like you and don't know much about it. Would it help you gurus if I posted it?
     
    My220x, Jan 26, 2010 IP
  7. earnincome

    earnincome Peon

    Messages:
    724
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    0
    #7
    This is because of ht access problem, see in your public .htaccess and see if there is any rewrite.

    Also where are you uploading .php files?
     
    earnincome, Jan 26, 2010 IP
  8. Djhanzo

    Djhanzo Greenhorn

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    16
    #8
    you have to modify your httaces because this file is not readable @ftp
     
    Djhanzo, Jan 26, 2010 IP
  9. My220x

    My220x Member

    Messages:
    624
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    35
    #9
    There is a rewrite because of WordPress but I don't know anything about .htaccess code. I'm uploading the .php file to the main directory. My .htacesss file is:

    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    # BEGIN SLC
    Redirect 302 /btfftm http://312b3l9-a-zickny8nyok6p--7.hop.clickbank.net/
    Redirect 302 /mgs http://563956ao4pa8jid3jk6tldy-bz.hop.clickbank.net/
    Redirect 302 /bre http://e155fk-n9lc7n8cbydwr0kdp29.hop.clickbank.net/
    # END SLC
    Code (markup):
     
    My220x, Jan 26, 2010 IP