return Response::make($feed, 200, array('Content-Type' => 'text/xml')); } public function sitemap(){ $header_xml = '<?xml version="1.0" encoding="UTF-8"?> <urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"></urlset>'; $xml = new SimpleXMLElement($header_xml); foreach(Page::whereIn('type',array(0))->orderBy('order')->get() as $cat){ $catxml = $xml->addChild('url');
Key | Value |
REDIRECT_STATUS | 200 |
HTTP_ACCEPT | */* |
HTTP_USER_AGENT | claudebot |
HTTP_HOST | vesinhhaiphong.com |
PATH | /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin |
SERVER_SIGNATURE | <address>Apache/2.4.18 (Ubuntu) Server at vesinhhaiphong.com Port 80</address> |
SERVER_SOFTWARE | Apache/2.4.18 (Ubuntu) |
SERVER_NAME | vesinhhaiphong.com |
SERVER_ADDR | 128.199.129.114 |
SERVER_PORT | 80 |
REMOTE_ADDR | 54.81.185.66 |
DOCUMENT_ROOT | /var/www/vesinhhaiphong.com/public |
REQUEST_SCHEME | http |
CONTEXT_PREFIX | |
CONTEXT_DOCUMENT_ROOT | /var/www/vesinhhaiphong.com/public |
SERVER_ADMIN | webmaster@localhost |
SCRIPT_FILENAME | /var/www/vesinhhaiphong.com/public/index.php |
REMOTE_PORT | 55402 |
REDIRECT_URL | /sitemap |
GATEWAY_INTERFACE | CGI/1.1 |
SERVER_PROTOCOL | HTTP/1.1 |
REQUEST_METHOD | GET |
QUERY_STRING | |
REQUEST_URI | /sitemap |
SCRIPT_NAME | /index.php |
PHP_SELF | /index.php |
REQUEST_TIME_FLOAT | 1710833851.008 |
REQUEST_TIME | 1710833851 |