404 when trying to access PHP files within wp-content
-
Hi, I’m troubleshooting a website for a client.
They have some PHP files related to site forms stored in
/wp-content/themes/theme_name/forms/These include a captcha php file and a form that is included in an iframe. It’s my understanding that these were all working up til recently but currently accessing the captcha.php or the form.php files brings you to the site’s 404 page. My first thought is that this has something to do with the site’s htaccess file but I’m not sure what.
# 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 <files ~ "^.*\.([Hh][Tt][Aa])"> order allow,deny deny from all satisfy all </files> <Files ~ "\.(css|jpe?g|png|gif|js)$"> Allow from all </Files> <Files ~ ".(/themes/)$"> Allow from all </Files> <Files .htaccess> order allow,deny deny from all </Files> <Files wp-config.php> order allow,deny deny from all </Files>
- The topic ‘404 when trying to access PHP files within wp-content’ is closed to new replies.