SHARE
TWEET

colorgenetics

alforddm Sep 12th, 2011 151 Never
  1. #
  2. # Apache/PHP/Drupal settings:
  3. #
  4.  
  5. # Protect files and directories from prying eyes.
  6. <FilesMatch "\.(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(\.php)?|xtmpl|svn-base)$|^(code-style\.pl|Entries.*|Repository|Root|Tag|Template|all-wcprops|entries|format)$">
  7.   Order allow,deny
  8. </FilesMatch>
  9.  
  10. # Don't show directory listings for URLs which map to a directory.
  11. Options -Indexes
  12.  
  13. # Follow symbolic links in this directory.
  14. Options +FollowSymLinks
  15.  
  16. # Make Drupal handle any 404 errors.
  17. ErrorDocument 404 /index.php
  18.  
  19. # Force simple error message for requests for non-existent favicon.ico.
  20. <Files favicon.ico>
  21.   # There is no end quote below, for compatibility with Apache 1.3.
  22.   ErrorDocument 404 "The requested file favicon.ico was not found.
  23. </Files>
  24.  
  25. # Set the default handler.
  26. DirectoryIndex index.php
  27.  
  28. # Override PHP settings. More in sites/default/settings.php
  29. # but the following cannot be changed at runtime.
  30.  
  31. # PHP 4, Apache 1.
  32. <IfModule mod_php4.c>
  33.  php_value magic_quotes_gpc                0
  34.  php_value register_globals                0
  35.  php_value session.auto_start              0
  36.  php_value mbstring.http_input             pass
  37.  php_value mbstring.http_output            pass
  38.  php_value mbstring.encoding_translation   0
  39. </IfModule>
  40.  
  41. # PHP 4, Apache 2.
  42. <IfModule sapi_apache2.c>
  43.  php_value magic_quotes_gpc                0
  44.  php_value register_globals                0
  45.  php_value session.auto_start              0
  46.  php_value mbstring.http_input             pass
  47.  php_value mbstring.http_output            pass
  48.  php_value mbstring.encoding_translation   0
  49. </IfModule>
  50.  
  51. # PHP 5, Apache 1 and 2.
  52. <IfModule mod_php5.c>
  53.  php_value magic_quotes_gpc                0
  54.  php_value register_globals                0
  55.  php_value session.auto_start              0
  56.  php_value mbstring.http_input             pass
  57.  php_value mbstring.http_output            pass
  58.  php_value mbstring.encoding_translation   0
  59. </IfModule>
  60.  
  61. # Requires mod_expires to be enabled.
  62. <IfModule mod_expires.c>
  63.  # Enable expirations.
  64.  ExpiresActive On
  65.  
  66.  # Cache all files for 2 weeks after access (A).
  67.  ExpiresDefault A1209600
  68.  
  69.  <FilesMatch \.php$>
  70.    # Do not allow PHP scripts to be cached unless they explicitly send cache
  71.    # headers themselves. Otherwise all scripts would have to overwrite the
  72.    # headers set by mod_expires if they want another caching behavior. This may
  73.    # fail if an error occurs early in the bootstrap process, and it may cause
  74.    # problems if a non-Drupal PHP file is installed in a subdirectory.
  75.    ExpiresActive Off
  76.  </FilesMatch>
  77. </IfModule>
  78.  
  79. # Various rewrite rules.
  80. <IfModule mod_rewrite.c>
  81.  RewriteEngine on
  82.  
  83.  # If your site can be accessed both with and without the 'www.' prefix, you
  84.  # can use one of the following settings to redirect users to your preferred
  85.  # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
  86.  #
  87.  # To redirect all users to access the site WITH the 'www.' prefix,
  88.  # (http://example.com/... will be redirected to http://www.example.com/...)
  89.  # adapt and uncomment the following:
  90.  # RewriteCond %{HTTP_HOST} ^example\.com$ [NC]
  91.  # RewriteRule ^(.*)$ http://www.example.com/$1 [L,R=301]
  92.  #
  93.  # To redirect all users to access the site WITHOUT the 'www.' prefix,
  94.  # (http://www.example.com/... will be redirected to http://example.com/...)
  95.  # uncomment and adapt the following:
  96.  # RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC]
  97.  # RewriteRule ^(.*)$ http://example.com/$1 [L,R=301]
  98.  
  99.  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  100.  # VirtualDocumentRoot and the rewrite rules are not working properly.
  101.  # For example if your site is at http://example.com/drupal uncomment and
  102.  # modify the following line:
  103.  # RewriteBase /drupal
  104.  #
  105.  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  106.  # uncomment the following line:
  107.  # RewriteBase /
  108.  
  109. ### BOOST START ###
  110.  AddDefaultCharset utf-8
  111.  <FilesMatch "(\.html|\.html\.gz|\.json|\.json\.gz)$">
  112.    <IfModule mod_headers.c>
  113.      Header set Expires "Sun, 19 Nov 1978 05:00:00 GMT"
  114.      Header set Cache-Control "no-store, no-cache, must-revalidate, post-check=0, pre-check=0"
  115.    </IfModule>
  116.  </FilesMatch>
  117.  <IfModule mod_mime.c>
  118.    AddCharset utf-8 .html
  119.    AddCharset utf-8 .css
  120.    AddCharset utf-8 .js
  121.    AddCharset utf-8 .json
  122.    AddEncoding gzip .gz
  123.  </IfModule>
  124.  <FilesMatch "(\.html|\.html\.gz)$">
  125.    ForceType text/html
  126.  </FilesMatch>
  127.  <FilesMatch "(\.json|\.json\.gz|\.js|\.js\.gz)$">
  128.    ForceType text/javascript
  129.  </FilesMatch>
  130.  <FilesMatch "(\.css|\.css\.gz)$">
  131.    ForceType text/css
  132.  </FilesMatch>
  133.  
  134.  # Gzip Cookie Test
  135.  RewriteRule boost-gzip-cookie-test\.html  cache/perm/boost-gzip-cookie-test\.html\.gz [L,T=text/html]
  136.  
  137. # GZIP - Cached css & js files
  138.  RewriteCond %{HTTP_COOKIE} !(boost-gzip)
  139.  RewriteCond %{HTTP:Accept-encoding} !gzip
  140.  RewriteRule .* - [S=2]
  141.  RewriteCond %{DOCUMENT_ROOT}/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css\.gz -s
  142.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css\.gz [L,QSA,T=text/css]
  143.  RewriteCond %{DOCUMENT_ROOT}/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js\.gz -s
  144.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js\.gz [L,QSA,T=text/javascript]
  145.  
  146.  # NORMAL - Cached css & js files
  147.  RewriteCond %{DOCUMENT_ROOT}/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css -s
  148.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css [L,QSA,T=text/css]
  149.  RewriteCond %{DOCUMENT_ROOT}/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js -s
  150.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js [L,QSA,T=text/javascript]
  151.  
  152.  # Caching for anonymous users
  153.  # Skip boost IF not get request OR uri has wrong dir OR cookie is set OR request came from this server OR https request
  154.  RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [OR]
  155.  RewriteCond %{REQUEST_URI} (^/(admin|cache|misc|modules|sites|system|openid|themes|node/add))|(/(comment/reply|edit|user|user/(login|password|register))$) [OR]
  156.  RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
  157.  RewriteCond %{HTTP:Pragma} no-cache [OR]
  158.  RewriteCond %{HTTP:Cache-Control} no-cache [OR]
  159.  RewriteCond %{HTTPS} on
  160.  RewriteRule .* - [S=3]
  161.  
  162.  # GZIP
  163.  RewriteCond %{HTTP_COOKIE} !(boost-gzip)
  164.  RewriteCond %{HTTP:Accept-encoding} !gzip
  165.  RewriteRule .* - [S=1]
  166.  RewriteCond %{DOCUMENT_ROOT}/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz -s
  167.  RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz [L,T=text/html]
  168.  
  169.  # NORMAL
  170.  RewriteCond %{DOCUMENT_ROOT}/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html -s
  171.  RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html [L,T=text/html]
  172.  
  173.  
  174.  # GZIP - Cached css & js files
  175.  RewriteCond %{HTTP_COOKIE} !(boost-gzip)
  176.  RewriteCond %{HTTP:Accept-encoding} !gzip
  177.  RewriteRule .* - [S=2]
  178.  RewriteCond %{DOCUMENT_ROOT}/equine/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css\.gz -s
  179.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css\.gz [L,QSA,T=text/css]
  180.  RewriteCond %{DOCUMENT_ROOT}/equine/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js\.gz -s
  181.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js\.gz [L,QSA,T=text/javascript]
  182.  
  183.  # NORMAL - Cached css & js files
  184.  RewriteCond %{DOCUMENT_ROOT}/equine/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css -s
  185.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css [L,QSA,T=text/css]
  186.  RewriteCond %{DOCUMENT_ROOT}/equine/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js -s
  187.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js [L,QSA,T=text/javascript]
  188.  
  189.  # Caching for anonymous users
  190.  # Skip boost IF not get request OR uri has wrong dir OR cookie is set OR request came from this server OR https request
  191.  RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [OR]
  192.  RewriteCond %{REQUEST_URI} (^/equine/(admin|cache|misc|modules|sites|system|openid|themes|node/add))|(/(comment/reply|edit|user|user/(login|password|register))$) [OR]
  193.  RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
  194.  RewriteCond %{HTTP:Pragma} no-cache [OR]
  195.  RewriteCond %{HTTP:Cache-Control} no-cache [OR]
  196.  RewriteCond %{HTTPS} on
  197.  RewriteRule .* - [S=5]
  198.  
  199.  # GZIP
  200.  RewriteCond %{HTTP_COOKIE} !(boost-gzip)
  201.  RewriteCond %{HTTP:Accept-encoding} !gzip
  202.  RewriteRule .* - [S=2]
  203.  RewriteCond %{DOCUMENT_ROOT}/equine/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz -s
  204.  RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz [L,T=text/html]
  205.  RewriteCond %{DOCUMENT_ROOT}/equine/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.json\.gz -s
  206.  RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.json\.gz [L,T=text/javascript]
  207.  
  208.  # NORMAL
  209.  RewriteCond %{DOCUMENT_ROOT}/equine/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html -s
  210.  RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html [L,T=text/html]
  211.  RewriteCond %{DOCUMENT_ROOT}/equine/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.json -s
  212.  RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.json [L,T=text/javascript]
  213.  
  214. # GZIP - Cached css & js files
  215.  RewriteCond %{HTTP_COOKIE} !(boost-gzip)
  216.  RewriteCond %{HTTP:Accept-encoding} !gzip
  217.  RewriteRule .* - [S=2]
  218.  RewriteCond %{DOCUMENT_ROOT}/feline/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css\.gz -s
  219.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css\.gz [L,QSA,T=text/css]
  220.  RewriteCond %{DOCUMENT_ROOT}/feline/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js\.gz -s
  221.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js\.gz [L,QSA,T=text/javascript]
  222.  
  223.  # NORMAL - Cached css & js files
  224.  RewriteCond %{DOCUMENT_ROOT}/feline/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css -s
  225.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css [L,QSA,T=text/css]
  226.  RewriteCond %{DOCUMENT_ROOT}/feline/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js -s
  227.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js [L,QSA,T=text/javascript]
  228.  
  229.  # Caching for anonymous users
  230.  # Skip boost IF not get request OR uri has wrong dir OR cookie is set OR request came from this server OR https request
  231.  RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [OR]
  232.  RewriteCond %{REQUEST_URI} (^/feline/(admin|cache|misc|modules|sites|system|openid|themes|node/add))|(/(comment/reply|edit|user|user/(login|password|register))$) [OR]
  233.  RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
  234.  RewriteCond %{HTTP:Pragma} no-cache [OR]
  235.  RewriteCond %{HTTP:Cache-Control} no-cache [OR]
  236.  RewriteCond %{HTTPS} on
  237.  RewriteRule .* - [S=3]
  238.  
  239.  # GZIP
  240.  RewriteCond %{HTTP_COOKIE} !(boost-gzip)
  241.  RewriteCond %{HTTP:Accept-encoding} !gzip
  242.  RewriteRule .* - [S=1]
  243.  RewriteCond %{DOCUMENT_ROOT}/feline/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz -s
  244.  RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz [L,T=text/html]
  245.  
  246.  # NORMAL
  247.  RewriteCond %{DOCUMENT_ROOT}/feline/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html -s
  248.  RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html [L,T=text/html]
  249.  
  250. # GZIP - Cached css & js files
  251.  RewriteCond %{HTTP_COOKIE} !(boost-gzip)
  252.  RewriteCond %{HTTP:Accept-encoding} !gzip
  253.  RewriteRule .* - [S=2]
  254.  RewriteCond %{DOCUMENT_ROOT}/canine/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css\.gz -s
  255.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css\.gz [L,QSA,T=text/css]
  256.  RewriteCond %{DOCUMENT_ROOT}/canine/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js\.gz -s
  257.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js\.gz [L,QSA,T=text/javascript]
  258.  
  259.  # NORMAL - Cached css & js files
  260.  RewriteCond %{DOCUMENT_ROOT}/canine/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css -s
  261.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.css [L,QSA,T=text/css]
  262.  RewriteCond %{DOCUMENT_ROOT}/canine/cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js -s
  263.  RewriteRule .* cache/perm/%{SERVER_NAME}%{REQUEST_URI}_\.js [L,QSA,T=text/javascript]
  264.  
  265.  # Caching for anonymous users
  266.  # Skip boost IF not get request OR uri has wrong dir OR cookie is set OR request came from this server OR https request
  267.  RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [OR]
  268.  RewriteCond %{REQUEST_URI} (^/canine/(admin|cache|misc|modules|sites|system|openid|themes|node/add))|(/(comment/reply|edit|user|user/(login|password|register))$) [OR]
  269.  RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
  270.  RewriteCond %{HTTP:Pragma} no-cache [OR]
  271.  RewriteCond %{HTTP:Cache-Control} no-cache [OR]
  272.  RewriteCond %{HTTPS} on
  273.  RewriteRule .* - [S=3]
  274.  
  275.  # GZIP
  276.  RewriteCond %{HTTP_COOKIE} !(boost-gzip)
  277.  RewriteCond %{HTTP:Accept-encoding} !gzip
  278.  RewriteRule .* - [S=1]
  279.  RewriteCond %{DOCUMENT_ROOT}/canine/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz -s
  280.  RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html\.gz [L,T=text/html]
  281.  
  282.  # NORMAL
  283.  RewriteCond %{DOCUMENT_ROOT}/canine/cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html -s
  284.  RewriteRule .* cache/normal/%{SERVER_NAME}%{REQUEST_URI}_%{QUERY_STRING}\.html [L,T=text/html]
  285.  
  286.  ### BOOST END ###
  287.  
  288. #rewrite subdomains to subdirectories
  289.          RewriteCond %{HTTP_HOST} ^feline\.colorgenetics\.info$ [NC]
  290.    RewriteRule ^(.*)$ http://colorgenetics.info/feline/$1 [L,R=301]
  291.  
  292. RewriteCond %{HTTP_HOST} ^canine\.colorgenetics\.info$ [NC]
  293.    RewriteRule ^(.*)$ http://colorgenetics.info/canine/$1 [L,R=301]
  294.  
  295. RewriteCond %{HTTP_HOST} ^equine\.colorgenetics\.info$ [NC]
  296.    RewriteRule ^(.*)$ http://colorgenetics.info/equine/$1 [L,R=301]
  297.  
  298. RewriteCond %{HTTP_HOST} ^www\.colorgenetics\.info$ [NC]
  299.         RewriteRule ^(.*)$ http://colorgenetics.info/$1 [L,R=301]
  300.  
  301. #equine gallery rewrite rules
  302.     RewriteCond %{REQUEST_FILENAME} -f [OR]
  303.    RewriteCond %{REQUEST_FILENAME} -d [OR]
  304.    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
  305.    RewriteCond %{REQUEST_URI} !/equine/index\.php$
  306.    RewriteRule .   -   [L]
  307.  
  308.    RewriteCond %{THE_REQUEST} /equine/d/([0-9]+)\-([0-9]+)/([^/?]+)(\?.|\ .)
  309.    RewriteCond %{REQUEST_URI} !/equine/index\.php$
  310.    RewriteRule .   /equine_gallery/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3   [QSA,L]
  311.    RewriteCond %{THE_REQUEST} /equine/gallery/v/([^?]+)(\?.|\ .)
  312.    RewriteCond %{REQUEST_URI} !/equine/index\.php$
  313.    RewriteRule .   /equine/index.php?q=gallery&g2_path=%1   [QSA,L]
  314.  
  315. #canine Gallery rewrite rules
  316.    RewriteCond %{REQUEST_FILENAME} -f [OR]
  317.    RewriteCond %{REQUEST_FILENAME} -d [OR]
  318.    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
  319.    RewriteCond %{REQUEST_URI} !/canine/index\.php$
  320.    RewriteRule .   -   [L]
  321.  
  322.    RewriteCond %{THE_REQUEST} /canine/d/([0-9]+)\-([0-9]+)/([^/?]+)(\?.|\ .)
  323.    RewriteCond %{REQUEST_URI} !/canine/index\.php$
  324.    RewriteRule .   /canine_gallery/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3   [QSA,L]
  325.    RewriteCond %{THE_REQUEST} /canine/gallery/v/([^?]+)(\?.|\ .)
  326.    RewriteCond %{REQUEST_URI} !/canine/index\.php$
  327.    RewriteRule .   /canine/index.php?q=gallery&g2_path=%1   [QSA,L]
  328.  
  329. #feline gallery rewrite rules
  330.    RewriteCond %{REQUEST_FILENAME} -f [OR]
  331.    RewriteCond %{REQUEST_FILENAME} -d [OR]
  332.    RewriteCond %{REQUEST_FILENAME} gallery\_remote2\.php
  333.    RewriteCond %{REQUEST_URI} !/feline/index\.php$
  334.    RewriteRule .   -   [L]
  335.  
  336.    RewriteCond %{THE_REQUEST} /feline/d/([0-9]+)\-([0-9]+)/([^/?]+)(\?.|\ .)
  337.    RewriteCond %{REQUEST_URI} !/feline/index\.php$
  338.    RewriteRule .   /feline_gallery/main.php?g2_view=core.DownloadItem&g2_itemId=%1&g2_serialNumber=%2&g2_fileName=%3   [QSA,L]
  339.    RewriteCond %{THE_REQUEST} /feline/gallery/v/([^?]+)(\?.|\ .)
  340.    RewriteCond %{REQUEST_URI} !/feline/index\.php$
  341.    RewriteRule .   /feline/index.php?q=gallery&g2_path=%1   [QSA,L]
  342.  
  343.  # Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
  344. RewriteCond %{REQUEST_FILENAME} !-f
  345. RewriteCond %{REQUEST_FILENAME} !-d
  346. RewriteCond %{REQUEST_URI} ^/feline/(.*)$
  347. RewriteRule ^(.*)$ /feline/index.php?q=$1 [L,QSA]
  348.  
  349. RewriteCond %{REQUEST_FILENAME} !-f
  350. RewriteCond %{REQUEST_FILENAME} !-d
  351. RewriteCond %{REQUEST_URI} ^/canine/(.*)$
  352. RewriteRule ^(.*)$ /canine/index.php?q=$1 [L,QSA]
  353.  
  354. RewriteCond %{REQUEST_FILENAME} !-f
  355. RewriteCond %{REQUEST_FILENAME} !-d
  356. RewriteCond %{REQUEST_URI} ^/equine/(.*)$
  357. RewriteRule ^(.*)$ /equine/index.php?q=$1 [L,QSA]
  358.  
  359.  RewriteCond %{REQUEST_FILENAME} !-f
  360.  RewriteCond %{REQUEST_FILENAME} !-d
  361.  RewriteCond %{REQUEST_URI} !=/favicon.ico
  362.  RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
  363.  
  364. </IfModule>
  365.  
  366. # $Id$
RAW Paste Data
Top