Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
And if there is nothing there but a redirect, what will you look at?
curl http://127.0.0.1:8000
you will see the HTML code of the response,
you will see the response headers,
for example, Symfony redirects in this form:
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<meta http-equiv="refresh" content="1;url=/" />
<title>Redirecting to /</title>
</head>
<body>
Redirecting to <a href="/">/</a>.
</body>
</html>
HTTP/1.1 302 Found
Host: 127.0.0.1:8000
Connection: close
X-Powered-By: PHP/7.0.4-7ubuntu2.1
Cache-Control: no-cache
Location: /
Content-Type: text/html; charset=UTF-8
X-Debug-Token: bc419c
X-Debug-Token-Link: http://127.0.0.1:8000/_profiler/bc419c
Date: Sat, 09 Jul 2016 08:21:56 GMT
You can see the response code on some service, for example: mainspy.ru/answer_servera or any other.
If the response code starts with 3XX, then this is a redirect.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question