Coder Social home page Coder Social logo

dut3062796s / angularseo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from johnhuang-cn/angularseo

0.0 2.0 0.0 877 KB

Java filter make AngularJS + JEE web site to be crawled by search engines

Home Page: http://www.angularseo.net/

Java 8.15% CSS 73.18% HTML 14.60% JavaScript 4.07%

angularseo's Introduction

What's AngularSEO

AngularSEO Filter is a SEO solution for AJAX frond-end sites with a JavaEE backend. The AJAX frond-end can be AngularJS, ReactJS and other AJAX framework.

How it works?

Integrate SEO filter on JEE server

Add a filter into web.xml, and set its URL mapping to '/*'.

Prerender static page snapshots

When server started, SEO filter will crawl self site and generate static page snapshot for each one with all the dynamic content fully rendered. It will update the snapshots regularly according your config.

Let crawlers see static content

SEO filter identify the crawl request by checking the User-Agent keyword . If it is Googlebot, bingbot, etc, filter will response with the pre-rendered static page from the snapshot. Other normal reqeusts will be passed to original service.

All hashbang URLs are well transformed

All hashbang URLs will be transformed to normal format which can be crawled more easily. So, you needn't care any speical rule of hashbang URL crawling specification.

e.g.
http://abc.com/#!/about -> http://abc.com/_23_21/about
http://abc.com/#/about -> http://abc.com/_23/about

When user click the transformed URLs from search engines, the filter will converte them back to the original format.

Original AngularJS page source VS Rendered static page source

Original AngularJS page source code:

<a href="#about"><div ng-bind="message"></div></a>

-> Rendered static page source code:

<a href="http://host/_23/about"><div ng-bind="message">the true message after binding</div></a>

Features

  • Easy setup: configure a filter only
  • Zero code change: needn't change any front-end and backend codes
  • Fast page loads: snapshot is prerendered & stored on the same server
  • Fully automated: it keeps working in the background after setup
  • It is FREE!
  • It is open source!

Requirements

The static site is generated by PhantomJS, so it need be installed on the server.

More

I built a simple AngularJS site (http://www.angularseo.net) to validate it. After one day, it was carwled by Google and Bing correctly. You can search 'angularseo.net' and check the cache result.

Guide

Click here for more details.

Contact

http://www.angularseo.net
John Huang: [email protected]

angularseo's People

Contributors

johnhuang-jh avatar johnhuang-cn avatar

Watchers

杜鹏 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.