Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.29 KB | None | 0 0
  1. # GESTION DIRECTIVAS x-robots-tags
  2.  
  3. RewriteCond %{QUERY_STRING} ^.*O=.* [OR]
  4. RewriteCond %{QUERY_STRING} ^.*map=.* [OR]
  5. RewriteCond %{QUERY_STRING} ^.*PS=.* [OR]
  6. RewriteCond %{QUERY_STRING} ^.*idsku=.* [OR]
  7. RewriteCond %{REQUEST_URI} ^/sin\sruedas$ [OR]
  8. RewriteCond %{REQUEST_URI} ^/escolar(/sin\sruedas)?$ [OR]
  9. RewriteCond %{REQUEST_URI} ^/deporte$ [OR]
  10. RewriteCond %{REQUEST_URI} ^/estuches$ [OR]
  11. RewriteCond %{REQUEST_URI} ^/juvenil$ [OR]
  12. RewriteCond %{REQUEST_URI} ^/moda$ [OR]
  13. RewriteCond %{REQUEST_URI} ^/para-portatil/estudio$ [OR]
  14. RewriteCond %{REQUEST_URI} ^/viaje$ [OR]
  15. RewriteCond %{REQUEST_URI} ^/ni%C3%B1o$
  16. RewriteRule .* - [ENV=NOINDEXFOLLOWPAGES:true]
  17.  
  18. RewriteCond %{REQUEST_URI} ^.*/buscavazia$
  19. RewriteCond %{QUERY_STRING} ^.*ft=.*
  20. RewriteRule .* - [ENV=NOINDEXFOLLOWPAGES:true]
  21.  
  22. Header set X-Robots-Tag "noindex,follow" env=NOINDEXFOLLOWPAGES
  23.  
  24.  
  25.  
  26.  
  27. <IfModule mod_rewrite.c>
  28. <IfModule mod_negotiation.c>
  29. Options -MultiViews -Indexes
  30. </IfModule>
  31.  
  32. RewriteEngine On
  33.  
  34.  
  35. # Redirect Trailing Slashes If Not A Folder...
  36. RewriteCond %{REQUEST_FILENAME} !-d
  37. RewriteCond %{REQUEST_URI} (.+)/$
  38. RewriteRule ^ %1 [L,R=301]
  39.  
  40. # Handle Front Controller...
  41. RewriteCond %{REQUEST_FILENAME} !-d
  42. RewriteCond %{REQUEST_FILENAME} !-f
  43. RewriteRule ^ index.php [L]
  44. </IfModule>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement