I have a wordpress blog and I need to add a php file on the website. The problem is whatever php file I upload to the website, I get a Wordpress generated 404 error.
I believe this is a .htaccess or permissions error, but I can't find any fix for it.
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 idea what could cause it?
Thanks
I have fixed the problem. The file had 666 permissions. I've set it to 644 and it now works.
Try this line: