I am new to AngularJS and due to some technical issues or maybe I'm just not aware of the right way, I am facing SEO related issues. So at the moment I plant a proxy server running behind the main server for bot crawlers to update SEO metadata information to Google and other search engines.
I am using Nginx and PHP on server and its AngularJS on frontend. So PHP is executing via a reverse proxy mechanism to prepare meta information for the same page we are accessing via AngularJS in our main application.
The system is running like below
Pseudo-code of proxy similar to
if (http_user_agent == 'facebookbot|googlebot') THEN proxy / https://www.phphtmlapp.com/ END IF
Is it a good approach or is there any better way to do this. Kindly suggest the better way.