[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

.htaccess sub-directory issue, wordpress

Posted on 2015-02-23
4
Medium Priority
?
124 Views
Last Modified: 2015-03-03
I have a PHP script that is a standalone script, it runs under the main directory of a wordpress website, its possible the main default .htaccess wordpress file, could be interfering with access to the execution of the PHP script,

In the scripts directory, (standalone PHP script) there is another .htaccess file that should be working but appears to have ceased to function.   any thoughts on how I can find out what is creating the issue?  

RewriteEngine On
RewriteCond %{ENV:CUSTOM_PAGE} !1
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule p_(.*?).html index.php?insight=$1 [L]

Open in new window

0
Comment
Question by:freejointventure
  • 2
  • 2
4 Comments
 
LVL 51

Accepted Solution

by:
Steve Bink earned 2000 total points
ID: 40628619
Turn on your rewrite log and examine what is being detected for %{REQUEST_FILENAME}.  Verify the file shown in the logs actually exists and is accessible to Apache.
0
 

Author Comment

by:freejointventure
ID: 40631676
excellent thank you.
0
 
LVL 51

Expert Comment

by:Steve Bink
ID: 40632402
Were you able to find the source of the issue in your logs?
0
 

Author Comment

by:freejointventure
ID: 40642917
not as yet, its likely related to a security (operates on .htaccess) is probably the cause of the issue,
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In order to have all security and back ups taken care of, WordPress users can sign up for services with WP Engine.
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
The purpose of this video is to demonstrate how to add AdSense Ads to a WordPress Website, and how to set up WordPress to automatically place Ads in Sidebars. This will be demonstrated using a Windows 8 PC. Log into your AdSense account. : Cli…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses
Course of the Month18 days, 23 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question