WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a hostgator wordpress site. My friend wrote two small php scripts to help us with a medial task we do a lot in our work, but he is currently hosting this script on his server; I want to host it on our official server.

Is there a way to straight-up ftp this folder containing

  1. two php files
  2. a larger js file
  3. a subfolder of multiple images

directly to my site and have it work? Every time I try to directly access the php file, wordpress automatically redirects to home (http://example.com). This is probably a very good security measure, but is there some way to whitelist these scripts to run without modifying them at all?

share|improve this question
up vote 0 down vote accepted

WordPress offers a dedicated API for your need: the Plugin API. So (let) write a plugin, which is really easy. Then you can use the extra code probably without conflicts.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.