Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I created a services folder in wordpress/wp-content/services. This folder will have web services coded in PHP. But when i try to access the .php file it is being redirected to index.html

While checking the .htaccess file i came across the line # ErrorDocument 404 /index.php even though i commented the line the problem is still same.

Is there any particular standard to be followed to access my php. I also tried including require_once(wp-load()) but no use..

please help.. thanks

share|improve this question
1  
AFAIK, you cannot access the .php files in this folder directly. You can put all your services code in a plugin and install it. That way it is better... –  Rutwick Gangurde Jul 30 '12 at 11:21
    
So i must start creating custom plugin here! But, i did the same on another server, It worked fine there. –  Rama raju dantuluri Jul 30 '12 at 11:28

1 Answer 1

The only way I can think of attempting this would be to have a custom page template that will pull in various bits of your custom PHP via get_template_part

share|improve this answer

Your Answer

 
discard

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.