"X-Litespeed-Redirect" is cut the directory name?

#1
Hello to everyone,

I recently switched from cPanel to CyberPanel. I know that the x-litespeed-redirect command I'm using in cPanel works in openlitespeed. But after setting up with CyberPanel, he stopped working. The problem is:
The X-Litespeed-Location code interrupts the directory or file name that I added.

For example:
I'm adding the following code to the PHP file:

PHP:
header('X-LiteSpeed-Location: /home/domain/public_html/directory');
or
PHP:
header('X-LiteSpeed-Location: /home/domain'puclic_html/files/name.exe');
The result of the process is truncating the directory and file path. The output is:

"/home/domain/public_html/directo"
The second:

"/home/domain'puclic_html/files/name. e"
As you can see, the last two letters are cut. Where could the problem be?


ADDING:

Note: 'PHP readfile ();' and 'header(Location);' commands run smoothly. The problem is only happening in the x-litespeed-location command.
 
Last edited:
#3
Yes, the final version of the path has been corrected. However, the same error persists while downloading files.

Test.php sample:

<?php
header ('Content-Disposition: attachment; filename = test.png');
header ('X-LiteSpeed-Location: /home/domain/public_html/test.png');
?>

Output filename:
test.p


**
The same code as readfile (); No problem when I use with. I understand that the "x-litespeed-location" file name is missing. "X-litespeed-location" works correctly when I save the file as "filename = test.pngAS". Because the file name AS was deleted.
 
Top