I am using this function to get content of .htaccess file
file_get_contents('http://www.example.com/.htaccess')
But its give me this error
failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
But When i open this url its working fine
file_get_contents('http://www.example.com/robots.txt')
Please help me to solved this Problem.
Thanks