简体   繁体   中英

Can't execute php files in wordpress directory

Here is my problem. I have a wordpress site, and I'm trying to make a file to migrate data from one database to another. So I have migration.php in wordpress root folder, but when I navigate to that file, I get error 404 Page Not found from Wordpress. I have tried different .htaccess fixes, but no luck my .htaccess looks like this

# 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

It is file permissions or .htaccess settings that may cause that. In addition you should be sure that file is present in real filesystem path.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM