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:
or
The result of the process is truncating the directory and file path. The output is:
The second:
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.
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');
PHP:
header('X-LiteSpeed-Location: /home/domain'puclic_html/files/name.exe');
"/home/domain/public_html/directo"
"/home/domain'puclic_html/files/name. e"
ADDING:
Note: 'PHP readfile ();' and 'header(Location);' commands run smoothly. The problem is only happening in the x-litespeed-location command.
Last edited: