Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- test result:
- curl -v http://mydomain.com/ainvailiduri/
- * Trying 222.22.22.22...
- * Connected to mydomain.com (222.22.22.22) port 80 (#0)
- > GET /ainvailiduri/ HTTP/1.1
- > Host: mydomain.com
- > User-Agent: curl/7.47.0
- > Accept: */*
- >
- < HTTP/1.1 301 Moved Permanently
- < Server: nginx/1.10.0 (Ubuntu)
- < Date: Fri, 20 Oct 2017 08:03:54 GMT
- < Content-Type: text/html; charset=UTF-8
- < Transfer-Encoding: chunked
- < Connection: keep-alive
- < Expires: Wed, 11 Jan 1984 05:00:00 GMT
- < Cache-Control: no-cache, must-revalidate, max-age=0
- < Location: http://www.mydomain.com/ainvailiduri/
- <
- * Connection #0 to host mydomain.com left intact
- the question is still the same, the redirection works, but I do not know how to verify if this is the permanent 301, doing via php, because only redirect does not work, it has to be 301, to ensure that the index will be updated by google. when done by nginx in the way that everyone knows, I am calm, redirect 301 with php. It's the first time I do, and I do not know if that really is the effect.
- my 301 errors were to send to my them, mydomain.com/404.php page now with the php code of my post, people go to my homepage, it's perfect, but how do I know if this is 301?
- a Line HTTP / 1.1 301 Moved Permanently in result, is there because that my current domain gets 301 from an old domain, but how do I check if mydomain.com/404.php is being redirected with 301?
- =========
- could be like that?:
- lanotec@lanotec-Aspire-E1-572:~$ curl -v http://mydomain.com/404.php/ainvailiduri/
- * Trying 222.22.22.22...
- * Connected to mydomain.com (222.22.22.22) port 80 (#0)
- > GET /404.php/ainvailiduri/ HTTP/1.1
- > Host: mydomain.com
- > User-Agent: curl/7.47.0
- > Accept: */*
- >
- < HTTP/1.1 301 Moved Permanently
- < Server: nginx/1.10.0 (Ubuntu)
- < Date: Fri, 20 Oct 2017 08:19:36 GMT
- < Content-Type: text/html; charset=UTF-8
- < Transfer-Encoding: chunked
- < Connection: keep-alive
- < Expires: Wed, 11 Jan 1984 05:00:00 GMT
- < Cache-Control: no-cache, must-revalidate, max-age=0
- < Location: http://www.mydomain.com/404.php/ainvailiduri/
- <
- * Connection #0 to host mydomain.com left intact
Advertisement
Add Comment
Please, Sign In to add comment