Skip to content

Notice: Undefined index: PATH_INFO in C:\Zend\Apache24\htdocs\php-reactjs\bootstrap.php on line 11 #1

@price2b

Description

@price2b

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions