Advertisement
Guest User

Untitled

a guest
Mar 4th, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.89 KB | None | 0 0
  1. $routeProvider
  2. .when('/', {
  3. templateUrl: '../views/tutorials.html',
  4. controller: 'TutorialController',
  5.  
  6.  
  7. })
  8. .when('/tutorial/:id', {
  9. templateUrl: '../views/tutorial_detail.html',
  10. controller: 'TutorialDetailController',
  11.  
  12. })
  13. .when('/add-tutorial', {
  14. templateUrl: '../views/tutorial_add.html',
  15. controller: 'TutorialAddController',
  16.  
  17. })
  18.  
  19. .otherwise('/');
  20. $locationProvider.hashPrefix('!');
  21. $locationProvider.html5Mode(false);
  22.  
  23. <IfModule mod_rewrite.c>
  24. RewriteEngine On
  25.  
  26.  
  27.  
  28. <IfModule mod_proxy_http.c>
  29. # Enable prerendering for .html and directory index files
  30. RewriteCond %{HTTP_USER_AGENT} Googlebot|bingbot|Googlebot-Mobile|Baiduspider|Yahoo|YahooSeeker [NC,OR]
  31. RewriteCond %{QUERY_STRING} _escaped_fragment_
  32. RewriteRule ^ http://prerender.em0xi0nx.com/http://tutorial.em0xi0nx.com/%{REQUEST_URI} [P,L]
  33. </IfModule>
  34. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement