LiteSpeed Technologies
Download Download     Blog Blog     Wiki Wiki     Forum Forum     Store     Contact Contact    

Go Back   LiteSpeed Support Forums > LiteSpeed Web Server > General > htaccess + auto_prepend_file failuere

Reply
 
Thread Tools Display Modes
  #1  
Old 12-30-2012, 12:27 PM
MJuhler MJuhler is offline
New Member
 
Join Date: Dec 2012
Posts: 7
Default htaccess + auto_prepend_file failuere

Hi, I have searched the forum and could not find other topics about this problem so I hope someone can help me.

In the /www I have a htaccess file containing the following:
php_value auto_prepend_file ../design/header.php
php_value auto_append_file ../design/footer.php

and it works fine, my problem is that when I call a page "list.php" located in /www/callback folder via "$("#show").load("callback/list.php");" so problems arise.
*
in callback folder is a htacces file with the following content:
php_value auto_prepend_file none
php_value auto_append_file none

and even to the rims htaccess file in the callback folder should not throw design of the file list.php then throw the design of anyway via htaccess file from the /www

It has worked in the past when we used Apache as web server, I hope there is someone who can help me
Reply With Quote
  #2  
Old 12-31-2012, 11:48 AM
webizen webizen is offline
LiteSpeed Staff
 
Join Date: Oct 2010
Posts: 2,338
Quote:
Originally Posted by MJuhler View Post
...
and it works fine, my problem is that when I call a page "list.php" located in /www/callback folder via "$("#show").load("callback/list.php");" so problems arise.
...
Please elaborate how you call list.php. What script language is this "$("#show").load("callback/list.php");"?
Reply With Quote
  #3  
Old 01-02-2013, 09:13 AM
MJuhler MJuhler is offline
New Member
 
Join Date: Dec 2012
Posts: 7
sorry, the page is in php with javascript

<div id="show"></div>
<script type="text/javascript">
jQuery(function($) {
$("#show").load("callback/list.php");
interval_stats = setInterval("$('#show').load('callback/list.php');", 5000);
});
</script>
Reply With Quote
  #4  
Old 01-06-2013, 04:45 AM
MJuhler MJuhler is offline
New Member
 
Join Date: Dec 2012
Posts: 7
I really need help to solve this problem
Reply With Quote
  #5  
Old 01-06-2013, 06:36 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
not clear about:
Quote:
and even to the rims htaccess file in the callback folder should not throw design of the file list.php then throw the design of anyway via htaccess file from the /www
can you be more specific ?
Reply With Quote
  #6  
Old 01-06-2013, 06:41 AM
MJuhler MJuhler is offline
New Member
 
Join Date: Dec 2012
Posts: 7
htaccess file in callback folder has:
php_value auto_prepend_file none
php_value auto_append_file none
ie. files in this folder are not put on design.

However, the files in callback folder is being put design on by the htaccess file from the www folder, this did not happen on apache.

it seems like the htaccess file located in the callback folder has no effect as soon htaccess file from the www folder is loaded
Reply With Quote
  #7  
Old 01-06-2013, 07:19 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
my simple test show it's working as expected.

when direct access www.domain.com/callback/list.php, any problem ?
Reply With Quote
  #8  
Old 01-06-2013, 07:31 AM
MJuhler MJuhler is offline
New Member
 
Join Date: Dec 2012
Posts: 7
Files in the callback folder has to be loaded by this script

<div id="show"></div>
<script type="text/javascript">
jQuery(function($) {
$("#show").load("callback/list.php");
interval_stats = setInterval("$('#show').load('callback/list.php');", 5000);
});
</script>

when the files is loaded and showen in the div is has the design 2 times, first time on the file test.php in the www dir, and design again on the file list.php in the www/callback folder (where the htaccess file is set not to apped the design.


Last edited by MJuhler; 01-06-2013 at 07:34 AM.. Reason: addet image
Reply With Quote
  #9  
Old 01-06-2013, 08:35 AM
NiteWave NiteWave is offline
LiteSpeed Staff
 
Join Date: Sep 2009
Posts: 2,226
here's testing source code: /test.php
PHP Code:
<script type="text/javascript" src="jquery.js">
</script>
<div id="show"></div>
<script type="text/javascript"> 
jQuery(function($) {
$("#show").load("callback/list.php");
interval_stats = setInterval("$('#show').load('callback/list.php');", 5000);
});
</script> 

the result is expected:
--- design header ---
--- callback/list.php -----
--- design footer ---
Reply With Quote
  #10  
Old 01-06-2013, 08:38 AM
MJuhler MJuhler is offline
New Member
 
Join Date: Dec 2012
Posts: 7
I do not understand why it teases with me if it works with you ... how does your htaccess file in the www folder and the callback folder?

Do you have something special in your server config?
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -7. The time now is 03:47 AM.



- Archive - Top
© Copyright 2003-2011 LiteSpeed Technologies, Inc. All rights reserved. Privacy Policy.