Wordpress 404 Problem

I have a wordpress blog and I need to add a php file to the website. The problem is that any php file that I upload to a website, I get a 404 error caused by Wordpress.

I believe this is a .htaccess or permissions error, but I cannot find any fixes.

File: .htaccess

 # -FrontPage- #IndexIgnore .htaccess /.?? ~ * # */HEADER /README /_vti <Limit GET POST> order deny,allow deny from all allow from all </Limit> <Limit PUT DELETE> order deny,allow deny from all </Limit> AuthName doctortipster.com AuthUserFile /home/doctips/public_html/_vti_pvt/service.pwd AuthGroupFile /home/doctips/public_html/_vti_pvt/service.grp # 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 

Do you have any ideas what might cause this?

thanks

0
source share
2 answers

Try this line:

 RewriteRule PATH/TO/YOUR/SCRIPT.php - [L] 
+1
source

I fixed the problem. The file had 666 permissions. I set it to 644 and now it works.

0
source

All Articles