Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $routeProvider
- .when('/', {
- templateUrl: '../views/tutorials.html',
- controller: 'TutorialController',
- })
- .when('/tutorial/:id', {
- templateUrl: '../views/tutorial_detail.html',
- controller: 'TutorialDetailController',
- })
- .when('/add-tutorial', {
- templateUrl: '../views/tutorial_add.html',
- controller: 'TutorialAddController',
- })
- .otherwise('/');
- $locationProvider.hashPrefix('!');
- $locationProvider.html5Mode(false);
- <IfModule mod_rewrite.c>
- RewriteEngine On
- <IfModule mod_proxy_http.c>
- # Enable prerendering for .html and directory index files
- RewriteCond %{HTTP_USER_AGENT} Googlebot|bingbot|Googlebot-Mobile|Baiduspider|Yahoo|YahooSeeker [NC,OR]
- RewriteCond %{QUERY_STRING} _escaped_fragment_
- RewriteRule ^ http://prerender.em0xi0nx.com/http://tutorial.em0xi0nx.com/%{REQUEST_URI} [P,L]
- </IfModule>
- </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement