javascript - Stopping Angular.js from running on pages in a specific directory -


i working on optimizing angular site seo. have necessary static pages being scraped , created, problem i'm seeing despite .htaccess serving static page when hitting corresponding url

rewriteengine on rewritecond %{query_string} ^_escaped_fragment_=/?(.*)$ rewriterule ^(.*)$ %{request_uri}/snapshots/%1.html? [nc,l] 

the whole process go this:

1.google crawler hits mysite.com/#/home

2.crawler see's angular site (thanks < meta name="fragment" content="!" > ) , re-crawls page given url of mysite.com?_escaped_fragment_=home 3. .htaccess sees , redirects crawler mysite.com/snapshot/home.html houses static page content. have indexed page.

for aren't familiar i'm trying http://www.yearofmoo.com/2012/11/angularjs-and-seo.html

it looks though angular still firing, continues append hashtag url (www.mysite.com?_escaped_fragment_=home/#/home). how stop angular adding url given static pages living in specific directory? original thoughts exclude script include static pages, become tedious process if work large site. there way tell angular ignore firing/working if file lives in given directory?

edit:: included code , more information.


Comments

Popular posts from this blog

c++ - No viable overloaded operator for references a map -

java - Custom OutputStreamAppender not run: LOGBACK: No context given for <MYAPPENDER> -

java - Cannot secure connection using TLS -