Skip to content

Issue with redirect #33

@xstable

Description

@xstable

Generally the Plugin work well, but, I do have the following issue.

How to reproduce:

  1. Create a file index.php and put this inside:

    var_dump($_SERVER['REQUEST_URI']);
  2. run php -S 127.0.0.1:7777/index.php on cli to run this side with the build-in php webserver

  3. Open the Address 127.0.0.1:7777 in your browser you'll see:
    image

  4. create an entry for simple-proxy extension:
    image

  5. enter test.com in your browser. You'll see:
    image

The issue

The issue is, that the kind of redirect crash the internal PHP-Variable $_SERVER['REQUIRE_URI']. Instead showing / (means, only the uri-PATH, it shows the whole URI including the protocol and domainname.

Why is this a problem?
If you - for example - redirect to a Page which use this $_SERVER['REQUIRE_URI'], the webpage won't be available or work in any way.

Info that might help:

see: https://www.php.net/manual/en/reserved.variables.server.php#121469

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