easylearntutorial
easylearntutorial copied to clipboard
Notice: Undefined index: PATH_INFO in C:\Zend\Apache24\htdocs\php-reactjs\bootstrap.php on line 11
Hi, thanks in advance. do you know if its possible to replace PATH_INFO with another path variable?.
despite I placed AcceptPathInfo On in httpd.conf what I get is this: Undefined index: PATH_INFO
I tried to create a file rewrite-pathinfo.php with:
<?php if(!empty($_SERVER['PATH_INFO'])) header("Location: ".$_SERVER['PATH_INFO']); $_SERVER['PATH_INFO'] = $_SERVER['REDIRECT_ORIGINAL_PATH']; ?>
and a .htaccess displaying:
php_value auto_prepend_file "C:/Zend/Apache24/htdocs/php-reactjs/rewrite_pathinfo.php"
AcceptPathInfo On
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) /index.php [QSA,L,PT,E=ORIGINAL_PATH:/$1]
But what I get again is this: Notice: Undefined index: PATH_INFO in C:\Zend\Apache24\htdocs\php-reactjs\bootstrap.php on line 11
I cannot know if PATH_INFO is a neccessary setup for reactjs or we can replace it. any help appreciated,
facing the same issue. Is there any work around to replace PATH_INFO