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

Redirect #20

Closed
kingW3 opened this issue Jun 2, 2017 · 1 comment
Closed

Redirect #20

kingW3 opened this issue Jun 2, 2017 · 1 comment

Comments

@kingW3
Copy link

kingW3 commented Jun 2, 2017

Visiting http:\approach.xyz doesn't redirect to https:\approach0.xyz\search instead it downloads a file called download with the following content (Chrome)

<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://approach0.xyz/search/");
?>

While in IE it just displays the page with plaint text from above.

@w32zhong
Copy link
Member

w32zhong commented Jun 4, 2017

@kingW3 Thank you for reporting.

Issue fixed. Recently I am doing some experiment on my VPS, and http to https rewrite rule is removed on purpose, the problem you see is because my / to /search/ redirection page is in PHP and no PHP handler rule is written in http section of NGINX configuration file.

@w32zhong w32zhong closed this as completed Jun 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants