?
Solved

.htaccess sub-directory issue, wordpress

Posted on 2015-02-23
4
Medium Priority
?
120 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 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

This article discusses four methods for overlaying images in a container on a web page
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 viewer will learn how to dynamically set the form action using jQuery.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
Suggested Courses

771 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