• Thanks for reading my thread πŸ™‚
    How can I access functions.php or index.php? They are located in /themes folder. When I try to open them in a browser I get 500 Internal Server Error. I tried to change the .htaccess file to this:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Options All -Indexes
    AddType x-mapp-php5 .php
    AddHandler x-mapp-php5 .php
    # END WordPress

    , but the only difference is that instead of 500 Error i get the content of the .php files. I’m using Apache server.
    Any advice?

Viewing 1 replies (of 1 total)
  • What exactly are you trying to accomplish?

    your theme’s index.php loads when you visit your site

    there would never be a reason to load functions.php. It holds functions for use by your theme and WP, it is not meant to be accessed directly.

    To edit them, you would do so in the theme editor from the admin panel, or using ftp or a file manager if your host offers one

Viewing 1 replies (of 1 total)

The topic ‘How to access functions.php directly?’ is closed to new replies.