404 keeps kill me after Wordpress 3.0 and higher
what have you done since Wordpress v3.0, all direct PHP files are not working in WP, all are returning 404 page not found
, I have created one plugin, it's loading /wp-content/plugins/myplugin/direct.php
file and what am I seeing now, it shows me my WP site with title PAGE NOT FOUND 404
, help me please I can't work with WP any more, all direct PHP files are not开发者_开发百科 accessible and tracked as 404
.
What should I do to turn off that terrible 404
or get my php files loaded.
Check your .htaccess
file, maybe all URLs
now are mapped to the index.php
file of Wordpress.
Based on the provided rewrite rules, I would suggest to use this instead:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
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
I'm not understanding the question. You're saying that you've created a plugin, and it's not calling in the files properly? (I'm assuming by "direct PHP file access" you mean you can't load a particular file that's within your plugin directory?)
Sounds like you're not using the correct paths. You should be using things like WP_PLUGIN_URL constants that are set up for you via WordPress (http://codex.wordpress.org/Determining_Plugin_and_Content_Directories) - i.e it doesn't sound like an .htaccess issue, it sounds like improper coding in the plugin.
Of course, without knowing what code you are using, it's difficult to say what the issue could be.
精彩评论