AngularSEO

{{content.description}}

{{content.aboutTitle}}

{{content.aboutDetail}}

{{content.aboutTitle1}}

{{content.aboutDetail1}}

{{content.aboutTitle2}}

{{content.aboutDetail2}}

{{content.aboutTitle3}}

{{content.aboutDetail3}}

{{content.aboutTitle4}}

{{content.aboutDetail4}}

Features

  • {{content.feature1}}
  • {{content.feature2}}
  • {{content.feature3}}
  • {{content.feature4}}
  • {{content.feature5}}
  • {{content.feature6}}

Get Started

Install PhantomJS

PhantomJS is used as a headless browser to generate the static page.

Please download it and extract the content to the web site server.

Add AngularSEO Filter to Project

Download AngularSEO Filter and extract it. There are 2 ways to use it:

1. Import angular-seo project to your Eclipse and add angular-seo/angular-seo-filter to your project's dependencies.

2. Add the lib/*.jars to your web app/WEB-INF/lib.

Config Filter in web.xml

The following is a example:


<filter>
	<filter-name>SEOFilter</filter-name>
	<display-name>SEOFilter</display-name>
	<description>AngularSEO Filter</description>
	<filter-class>net.angularseo.SEOFilter</filter-class>
	<!-- The path to the PhantomJS binary -->
	<init-param>
		<param-name>phantomjs.binary.path</param-name>
		<param-value>C:\\phantomjs2.0\\bin\\phantomjs.exe</param-value>
	</init-param>
	<!-- The time waiting the JS page to finish the dynamic loading, unit is second.
	 -->
	<init-param>
		<param-name>waitForPageLoad</param-name>
		<param-value>3</param-value>
	</init-param>
	<!-- Filter already embed google, bing, baidu UserAgent keywords,
	     If you want to support more, add them and split with |
	 -->
	<init-param>
		<param-name>robotUserAgents</param-name>
		<param-value>YodaoBot|Zealbot</param-value>
	</init-param>
	<!-- The interval that SEOFilter update the static page snapshot -->
	<init-param>
		<param-name>cacheTimeout</param-name>
		<param-value>24</param-value>
	</init-param>	
	<!-- The path to save the static version pages -->
	<init-param>
		<param-name>cachePath</param-name>
		<param-value>c:\\cache</param-value>
	</init-param>
	<!-- crawlDepth is used to limited the crawl depth -->
	<init-param>
		<param-name>crawlDepth</param-name>
		<param-value>10</param-value>
	</init-param>
	<!-- The default page encoding of this site -->
	<init-param>
		<param-name>encoding</param-name>
		<param-value>UTF-8</param-value>
	</init-param>		
</filter>
<filter-mapping>
	<filter-name>SEOFilter</filter-name>
	<url-pattern>/*</url-pattern>
</filter-mapping>
                     

Full Documentation

Please click here. for full documentation with screenshot。

License

This AngularSEO Filter is 100% FREE under the MIT License.

Contact

I hope you find this AngularSEO Filter useful.
Feel free to get in touch if you have any questions or suggestions.

Next plans?

{{content.nextPlan1}}

John Huang
http://www.missionsky.com

Get Connected