Solved

.htaccess sub-directory issue, wordpress

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

Is Your AD Toolbox Looking More Like a Toybox?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

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.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The purpose of this video is to demonstrate how to manually back up a WordPress Database. This will be demonstrated using a Windows 8 PC. The Host used will be IPage.com Log into your Hosting account. IPage will be used for demonstration : Locat…
The purpose of this video is to demonstrate how to set up the permalinks on a WordPress Website. This will be demonstrated using a Windows 8 PC. Go to your WordPress login page. This will look like the following: mywebsite.com/wp-login.php : Go t…

770 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