Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
price2b opened this issue Aug 21, 2016 · 1 comment

Comments

@price2b
Copy link

price2b commented Aug 21, 2016

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,

@zeeshanjan82
Copy link

facing the same issue. Is there any work around to replace PATH_INFO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants