Title: trouble when running external php script with wordpress
Last modified: August 19, 2016

---

# trouble when running external php script with wordpress

 *  [tkien](https://wordpress.org/support/users/tkien/)
 * (@tkien)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/trouble-when-running-external-php-script-with-wordpress/)
 * Hi,
 * I got problem when running a php script with wordpress. I setup wp on example.
   com, script (with .htaccess) run on example.com/script/
 * When access a file example.com/script/sample.php, wp shows 404 error.
 * How to fix it?

The topic ‘trouble when running external php script with wordpress’ is closed to
new replies.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [tkien](https://wordpress.org/support/users/tkien/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/trouble-when-running-external-php-script-with-wordpress/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
