Can't direct access php file in Wordpress file system

Discussion in 'WordPress' started by victor-wd, Apr 29, 2011.

  1. #1
    Hi forum, I need to call /wp-content/plugins/myplugin/somefile.php from admin but it's loads "Page not found 404" page, how can I access directly to my file?

    Here is my .htaccess file content

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteRule ^.*shop/images/(\d+)/?\??(.*)$ /wp-content/plugins/shopp/core/image.php?siid=$1&$2 [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    Code (markup):
     
    victor-wd, Apr 29, 2011 IP
  2. mccomf

    mccomf Active Member

    Messages:
    517
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    You can access the file via Wordpress Dasboard in plugins editor.
     
    mccomf, Apr 29, 2011 IP
  3. victor-wd

    victor-wd Greenhorn

    Messages:
    25
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    No, I didn't mean that I can't access php file to edit or delet, I meant call that file url on browser, it loads "page not found 404" page of my wordpress site.
     
    victor-wd, Apr 29, 2011 IP
  4. wpredesign

    wpredesign Member

    Messages:
    28
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    31
    #4
    you can't access file in Web browser this is for security reason...
    You can only access these files in WP Admin or File manager of Web Hosting
     
    wpredesign, May 1, 2011 IP