Solved

.htaccess sub-directory issue, wordpress

Posted on 2015-02-23
4
110 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 50

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 50

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
PHP Variable into a number 3 34
windows 10 bash shell 4 34
Button Click 11 25
Your suggestions for a Wordpress Theme 2 19
Things That Drive Us Nuts Have you noticed the use of the reCaptcha feature at EE and other web sites?  It wants you to read and retype something that looks like this.Insanity!  It's not EE's fault - that's just the way reCaptcha works.  But it is …
This article discusses four methods for overlaying images in a container on a web page
The purpose of this video is to demonstrate how to Test the speed of a WordPress Website. Site Speed is an important metric of a site’s health. Slow site speed can result in viewers leaving your site quickly and not seeing your content. This…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

706 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now