Advertisement
Guest User

seshtaccess

a guest
Apr 19th, 2012
432
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. AddHandler server-parsed .html
  2. AddHandler server-parsed .htm
  3. # Use PHP5 as default
  4. # AddHandler application/x-httpd-php5 .php .htm .html
  5. #RedirectMatch \.(dynamiccontent|pl|plx|perl|cgi|php|php4|php4|php6|php3|shtml)$ http://d9dns.com/cgi-sys/movingpage.cgi
  6. #RedirectMatch \.(dynamiccontent|pl|plx|perl|cgi|php|php4|php4|php6|php3|shtml)$ http://d9dns.com/cgi-sys/movingpage.cgi
  7. #RedirectMatch \.(dynamiccontent|pl|plx|perl|cgi|php|php4|php4|php6|php3|shtml)$ http://d9dns.com/cgi-sys/movingpage.cgi
  8.  
  9. # Turn on Expires and set default to 0
  10. ExpiresActive On
  11. ExpiresDefault A0
  12.  
  13. # Set up caching on media files for 1 year (forever?)
  14. <filesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav)$">
  15. ExpiresDefault A29030400
  16. Header append Cache-Control "public"
  17. </filesMatch>
  18.  
  19. # Set up caching on media files for 6 months
  20. <filesMatch "\.(gif|jpg|jpeg|png|swf)$">
  21. ExpiresDefault A14515200
  22. Header append Cache-Control "public"
  23. </filesMatch>
  24.  
  25. # Set up 1 week caching on commonly updated files
  26. <filesMatch "\.(xml|txt|html|js|css)$">
  27. ExpiresDefault A604800
  28. Header append Cache-Control "proxy-revalidate"
  29. AddDefaultCharset iso-8859-1
  30. DefaultLanguage en-gb
  31. </filesMatch>
  32.  
  33. # Force no caching for dynamic files
  34. <filesMatch "\.(php|cgi|pl|htm)$">
  35. ExpiresActive Off
  36. Header set Cache-Control "private, no-cache, no-store, proxy-revalidate, no-transform"
  37. Header set Pragma "no-cache"
  38. AddDefaultCharset iso-8859-1
  39. DefaultLanguage en-gb
  40. </filesMatch>
  41. RewriteRule ^growingyourownveg/.*$ - [PT]
  42.  
  43. # BEGIN WordPress
  44. <IfModule mod_rewrite.c>
  45. RewriteEngine On
  46. RewriteBase /
  47. RewriteRule ^index\.php$ - [L]
  48.  
  49. # uploaded files
  50. RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
  51.  
  52. # add a trailing slash to /wp-admin
  53. RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
  54.  
  55. RewriteCond %{REQUEST_FILENAME} -f [OR]
  56. RewriteCond %{REQUEST_FILENAME} -d
  57. RewriteRule ^ - [L]
  58. RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
  59. RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
  60. RewriteRule . index.php [L]
  61. </IfModule>
  62. # END WordPress
  63. RewriteCond %{HTTP_USER_AGENT} ^Baiduspider/2.0 [NC,OR]
  64. RewriteRule ^.* - [F,L]
  65. RewriteCond %{HTTP_USER_AGENT} ^Baiduspider [NC,OR]
  66. RewriteRule ^.* - [F,L]
  67. RewriteCond %{HTTP_USER_AGENT} ^Baidu [NC,OR]
  68. RewriteRule ^.* - [F,L]
  69. <Files 403.shtml>
  70. order allow,deny
  71. allow from all
  72. </Files>
  73.  
  74. RewriteCond %{HTTP_HOST} ^health\.simonegansmith\.com$ [OR]
  75. RewriteCond %{HTTP_HOST} ^www\.health\.simonegansmith\.com$
  76. RewriteRule ^Health_\&_Fitness\/Quit_Smoking\/Weight_Loss\/Walking_For_Fitness\/Weight_Loss\/Health_\&_Fitness\/Pregnancy\/?(.*)$ "http\:\/\/health\.simonegansmith\.com\/Pregnancy\/$1" [R=301,L]
  77.  
  78. RewriteCond %{HTTP_HOST} ^health\.simonegansmith\.com$ [OR]
  79. RewriteCond %{HTTP_HOST} ^www\.health\.simonegansmith\.com$
  80. RewriteRule ^Health_\&_Fitness\/Quit_Smoking\/Weight_Loss\/Walking_For_Fitness\/Weight_Loss\/Health_\&_Fitness\/Quit_Smoking\/?(.*)$ "http\:\/\/health\.simonegansmith\.com\/Quit_Smoking\/$1" [R=301,L]
  81.  
  82. RewriteCond %{HTTP_HOST} ^health\.simonegansmith\.com$ [OR]
  83. RewriteCond %{HTTP_HOST} ^www\.health\.simonegansmith\.com$
  84. RewriteRule ^Health_\&_Fitness\/Quit_Smoking\/Weight_Loss\/Walking_For_Fitness\/Weight_Loss\/Health_\&_Fitness\/Weight_Loss\/?(.*)$ "http\:\/\/health\.simonegansmith\.com\/Weight_Loss\/$1" [R=301,L]
  85.  
  86. RewriteCond %{HTTP_HOST} ^health\.simonegansmith\.com$ [OR]
  87. RewriteCond %{HTTP_HOST} ^www\.health\.simonegansmith\.com$
  88. RewriteRule ^Health_\&_Fitness\/Quit_Smoking\/Weight_Loss\/Walking_For_Fitness\/Weight_Loss\/Health_\&_Fitness\/Walking_For_Fitness\/?(.*)$ "http\:\/\/health\.simonegansmith\.com\/Walking_For_Fitness\/$1" [R=301,L]
  89.  
  90. RewriteCond %{HTTP_HOST} ^health\.simonegansmith\.com$ [OR]
  91. RewriteCond %{HTTP_HOST} ^www\.health\.simonegansmith\.com$
  92. RewriteRule ^h\/Weight_Loss\/Pregnancy\/Pregnancy\/Health_\&_Fitness\/Walking_For_Fitness\/Quit_Smoking\/Weight_Loss\/Walking_For_Fitness\/?(.*)$ "http\:\/\/health\.simonegansmith\.com\/Walking_For_Fitness\/$1" [R=301,L]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement