Solved

.htaccess sub-directory issue, wordpress

Posted on 2015-02-23
4
118 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 51

Accepted Solution

by:
Steve Bink earned 500 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The purpose of this video is to demonstrate how to integrate Mailchimp with WordPress, by placing a Mailchimp signup form on a WordPress Page or Post. This will be demonstrated using a Windows 8 PC. Mailchimp will be used. Log into your Mailchi…

717 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