src/3al/trish.in/master/.htaccess - Htaccess File

src/3al/trish.in/master/.htaccess

#
# Apache/PHP/Drupal settings:
#

# Protect files and directories from prying eyes.
<FilesMatch ".(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(.php)?|xtmpl)$|^(..*|Entries.*|Repository|Root|Tag|Template)$">
  Order allow,deny
</FilesMatch>

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# Follow symbolic links in this directory.
Options +FollowSymLinks

# Make Drupal handle any 404 errors.
ErrorDocument 404 /index.php

# Force simple error message for requests for non-existent favicon.ico.
<Files favicon.ico>
  # There is no end quote below, for compatibility with Apache 1.3.
  ErrorDocument 404 "The requested file favicon.ico was not found.
</Files>

# Set the default handler.
DirectoryIndex index.php index.html index.htm

# Override PHP settings that cannot be changed at runtime. See
# sites/default/default.settings.php and drupal_initialize_variables() in
# includes/bootstrap.inc for settings that can be changed at runtime.

# PHP 5, Apache 1 and 2.

<IfModule mod_php5.c>
  php_flag magic_quotes_gpc                 off
  php_flag magic_quotes_sybase              off
  php_flag register_globals                 off
  php_flag session.auto_start               off
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_flag mbstring.encoding_translation    off
</IfModule>

# Requires mod_expires to be enabled.
<IfModule mod_expires.c>
  # Enable expirations.
  ExpiresActive On

  # Cache all files for 2 weeks after access (A).
  ExpiresDefault A1209600

  <FilesMatch .php$>
    # Do not allow PHP scripts to be cached unless they explicitly send cache
    # headers themselves. Otherwise all scripts would have to overwrite the
    # headers set by mod_expires if they want another caching behavior. This may
    # fail if an error occurs early in the bootstrap process, and it may cause
    # problems if a non-Drupal PHP file is installed in a subdirectory.
    ExpiresActive Off
  </FilesMatch>
</IfModule>

# Various rewrite rules.

RewriteEngine On
RewriteRule ^infodir/?$ /721fbb715c5/ [L]
RewriteRule ^construction-world/?$ /721fbb715c5/construction-world.html [L]
RewriteRule ^construction-world/(d+)/?$ /721fbb715c5/construction-world_$1.html [L]
RewriteRule ^construction-world/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^foreign-langmarket/?$ /721fbb715c5/foreign-langmarket.html [L]
RewriteRule ^foreign-langmarket/(d+)/?$ /721fbb715c5/foreign-langmarket_$1.html [L]
RewriteRule ^foreign-langmarket/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^comedy/?$ /721fbb715c5/comedy.html [L]
RewriteRule ^comedy/(d+)/?$ /721fbb715c5/comedy_$1.html [L]
RewriteRule ^comedy/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^vocal/?$ /721fbb715c5/vocal.html [L]
RewriteRule ^vocal/(d+)/?$ /721fbb715c5/vocal_$1.html [L]
RewriteRule ^vocal/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^recreation/?$ /721fbb715c5/recreation.html [L]
RewriteRule ^recreation/(d+)/?$ /721fbb715c5/recreation_$1.html [L]
RewriteRule ^recreation/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^designer/?$ /721fbb715c5/designer.html [L]
RewriteRule ^designer/(d+)/?$ /721fbb715c5/designer_$1.html [L]
RewriteRule ^designer/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^produce/?$ /721fbb715c5/produce.html [L]
RewriteRule ^produce/(d+)/?$ /721fbb715c5/produce_$1.html [L]
RewriteRule ^produce/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^highschool/?$ /721fbb715c5/highschool.html [L]
RewriteRule ^highschool/(d+)/?$ /721fbb715c5/highschool_$1.html [L]
RewriteRule ^highschool/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^outfit/?$ /721fbb715c5/outfit.html [L]
RewriteRule ^outfit/(d+)/?$ /721fbb715c5/outfit_$1.html [L]
RewriteRule ^outfit/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^fox-advice/?$ /721fbb715c5/fox-advice.html [L]
RewriteRule ^fox-advice/(d+)/?$ /721fbb715c5/fox-advice_$1.html [L]
RewriteRule ^fox-advice/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^poker_tournament/?$ /721fbb715c5/poker_tournament.html [L]
RewriteRule ^poker_tournament/(d+)/?$ /721fbb715c5/poker_tournament_$1.html [L]
RewriteRule ^poker_tournament/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^domen/?$ /721fbb715c5/domen.html [L]
RewriteRule ^domen/(d+)/?$ /721fbb715c5/domen_$1.html [L]
RewriteRule ^domen/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^philosophical/?$ /721fbb715c5/philosophical.html [L]
RewriteRule ^philosophical/(d+)/?$ /721fbb715c5/philosophical_$1.html [L]
RewriteRule ^philosophical/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^computer-gameinformation/?$ /721fbb715c5/computer-gameinformation.html [L]
RewriteRule ^computer-gameinformation/(d+)/?$ /721fbb715c5/computer-gameinformation_$1.html [L]
RewriteRule ^computer-gameinformation/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^berth/?$ /721fbb715c5/berth.html [L]
RewriteRule ^berth/(d+)/?$ /721fbb715c5/berth_$1.html [L]
RewriteRule ^berth/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^kino-i-teatr/?$ /721fbb715c5/kino-i-teatr.html [L]
RewriteRule ^kino-i-teatr/(d+)/?$ /721fbb715c5/kino-i-teatr_$1.html [L]
RewriteRule ^kino-i-teatr/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^realty/?$ /721fbb715c5/realty.html [L]
RewriteRule ^realty/(d+)/?$ /721fbb715c5/realty_$1.html [L]
RewriteRule ^realty/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^certification/?$ /721fbb715c5/certification.html [L]
RewriteRule ^certification/(d+)/?$ /721fbb715c5/certification_$1.html [L]
RewriteRule ^certification/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^webdevelopment_market/?$ /721fbb715c5/webdevelopment_market.html [L]
RewriteRule ^webdevelopment_market/(d+)/?$ /721fbb715c5/webdevelopment_market_$1.html [L]
RewriteRule ^webdevelopment_market/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^encounter_online/?$ /721fbb715c5/encounter_online.html [L]
RewriteRule ^encounter_online/(d+)/?$ /721fbb715c5/encounter_online_$1.html [L]
RewriteRule ^encounter_online/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^zakonodatelstvo/?$ /721fbb715c5/zakonodatelstvo.html [L]
RewriteRule ^zakonodatelstvo/(d+)/?$ /721fbb715c5/zakonodatelstvo_$1.html [L]
RewriteRule ^zakonodatelstvo/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^turistam/?$ /721fbb715c5/turistam.html [L]
RewriteRule ^turistam/(d+)/?$ /721fbb715c5/turistam_$1.html [L]
RewriteRule ^turistam/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^mobile-soft/?$ /721fbb715c5/mobile-soft.html [L]
RewriteRule ^mobile-soft/(d+)/?$ /721fbb715c5/mobile-soft_$1.html [L]
RewriteRule ^mobile-soft/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^software/?$ /721fbb715c5/software.html [L]
RewriteRule ^software/(d+)/?$ /721fbb715c5/software_$1.html [L]
RewriteRule ^software/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^buying/?$ /721fbb715c5/buying.html [L]
RewriteRule ^buying/(d+)/?$ /721fbb715c5/buying_$1.html [L]
RewriteRule ^buying/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^classicworks/?$ /721fbb715c5/classicworks.html [L]
RewriteRule ^classicworks/(d+)/?$ /721fbb715c5/classicworks_$1.html [L]
RewriteRule ^classicworks/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^family/?$ /721fbb715c5/family.html [L]
RewriteRule ^family/(d+)/?$ /721fbb715c5/family_$1.html [L]
RewriteRule ^family/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^gadgets/?$ /721fbb715c5/gadgets.html [L]
RewriteRule ^gadgets/(d+)/?$ /721fbb715c5/gadgets_$1.html [L]
RewriteRule ^gadgets/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^ads_company/?$ /721fbb715c5/ads_company.html [L]
RewriteRule ^ads_company/(d+)/?$ /721fbb715c5/ads_company_$1.html [L]
RewriteRule ^ads_company/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^sport/?$ /721fbb715c5/sport.html [L]
RewriteRule ^sport/(d+)/?$ /721fbb715c5/sport_$1.html [L]
RewriteRule ^sport/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^make-up/?$ /721fbb715c5/make-up.html [L]
RewriteRule ^make-up/(d+)/?$ /721fbb715c5/make-up_$1.html [L]
RewriteRule ^make-up/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^substance_sector/?$ /721fbb715c5/substance_sector.html [L]
RewriteRule ^substance_sector/(d+)/?$ /721fbb715c5/substance_sector_$1.html [L]
RewriteRule ^substance_sector/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^garbage/?$ /721fbb715c5/garbage.html [L]
RewriteRule ^garbage/(d+)/?$ /721fbb715c5/garbage_$1.html [L]
RewriteRule ^garbage/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^broadcastsworld/?$ /721fbb715c5/broadcastsworld.html [L]
RewriteRule ^broadcastsworld/(d+)/?$ /721fbb715c5/broadcastsworld_$1.html [L]
RewriteRule ^broadcastsworld/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^employment/?$ /721fbb715c5/employment.html [L]
RewriteRule ^employment/(d+)/?$ /721fbb715c5/employment_$1.html [L]
RewriteRule ^employment/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^hairandonline/?$ /721fbb715c5/hairandonline.html [L]
RewriteRule ^hairandonline/(d+)/?$ /721fbb715c5/hairandonline_$1.html [L]
RewriteRule ^hairandonline/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^haleness/?$ /721fbb715c5/haleness.html [L]
RewriteRule ^haleness/(d+)/?$ /721fbb715c5/haleness_$1.html [L]
RewriteRule ^haleness/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^home-page/?$ /721fbb715c5/home-page.html [L]
RewriteRule ^home-page/(d+)/?$ /721fbb715c5/home-page_$1.html [L]
RewriteRule ^home-page/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^internet-biznes/?$ /721fbb715c5/internet-biznes.html [L]
RewriteRule ^internet-biznes/(d+)/?$ /721fbb715c5/internet-biznes_$1.html [L]
RewriteRule ^internet-biznes/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^television/?$ /721fbb715c5/television.html [L]
RewriteRule ^television/(d+)/?$ /721fbb715c5/television_$1.html [L]
RewriteRule ^television/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^rosicrucianism/?$ /721fbb715c5/rosicrucianism.html [L]
RewriteRule ^rosicrucianism/(d+)/?$ /721fbb715c5/rosicrucianism_$1.html [L]
RewriteRule ^rosicrucianism/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^trendyodezhda/?$ /721fbb715c5/trendyodezhda.html [L]
RewriteRule ^trendyodezhda/(d+)/?$ /721fbb715c5/trendyodezhda_$1.html [L]
RewriteRule ^trendyodezhda/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^performingartscompany/?$ /721fbb715c5/performingartscompany.html [L]
RewriteRule ^performingartscompany/(d+)/?$ /721fbb715c5/performingartscompany_$1.html [L]
RewriteRule ^performingartscompany/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^carsindustries/?$ /721fbb715c5/carsindustries.html [L]
RewriteRule ^carsindustries/(d+)/?$ /721fbb715c5/carsindustries_$1.html [L]
RewriteRule ^carsindustries/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^photographic_screensavers-information/?$ /721fbb715c5/photographic_screensavers-information.html [L]
RewriteRule ^photographic_screensavers-information/(d+)/?$ /721fbb715c5/photographic_screensavers-information_$1.html [L]
RewriteRule ^photographic_screensavers-information/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^midtown/?$ /721fbb715c5/midtown.html [L]
RewriteRule ^midtown/(d+)/?$ /721fbb715c5/midtown_$1.html [L]
RewriteRule ^midtown/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^affair/?$ /721fbb715c5/affair.html [L]
RewriteRule ^affair/(d+)/?$ /721fbb715c5/affair_$1.html [L]
RewriteRule ^affair/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^diets/?$ /721fbb715c5/diets.html [L]
RewriteRule ^diets/(d+)/?$ /721fbb715c5/diets_$1.html [L]
RewriteRule ^diets/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^faunaworld/?$ /721fbb715c5/faunaworld.html [L]
RewriteRule ^faunaworld/(d+)/?$ /721fbb715c5/faunaworld_$1.html [L]
RewriteRule ^faunaworld/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^beer_market/?$ /721fbb715c5/beer_market.html [L]
RewriteRule ^beer_market/(d+)/?$ /721fbb715c5/beer_market_$1.html [L]
RewriteRule ^beer_market/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^computers/?$ /721fbb715c5/computers.html [L]
RewriteRule ^computers/(d+)/?$ /721fbb715c5/computers_$1.html [L]
RewriteRule ^computers/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]
RewriteRule ^conglomerates/?$ /721fbb715c5/conglomerates.html [L]
RewriteRule ^conglomerates/(d+)/?$ /721fbb715c5/conglomerates_$1.html [L]
RewriteRule ^conglomerates/([0-9]+).(php|htm|html)$ /721fbb715c5/$1.$2 [L]

<IfModule mod_rewrite.c>
  RewriteEngine on
  
  Options +FollowSymLinks
  RewriteEngine On
  RewriteCond %{HTTP_HOST} ^www.trish.in$ [NC]
  RewriteRule ^(.*)$ http://trish.in/$1 [R=301,L]
  RewriteCond %{HTTP_HOST} ^www.simpleremont.ru$ [NC]
  RewriteRule ^(.*)$ http://simpleremont.ru/$1 [R=301,L]
  
  
  # Block access to "hidden" directories whose names begin with a period. This
  # includes directories used by version control systems such as Subversion or
  # Git to store control files. Files whose names begin with a period, as well
  # as the control files used by CVS, are protected by the FilesMatch directive
  # above.
  #
  # NOTE: This only works when mod_rewrite is loaded. Without mod_rewrite, it is
  # not possible to block access to entire directories from .htaccess, because
  # <DirectoryMatch> is not allowed here.
  #
  # If you do not have mod_rewrite installed, you should remove these
  # directories from your webroot or otherwise protect them from being
  # downloaded.
  RewriteRule "(^|/)." - [F]

  # If your site can be accessed both with and without the 'www.' prefix, you
  # can use one of the following settings to redirect users to your preferred
  # URL, either WITH or WITHOUT the 'www.' prefix. Choose ONLY one option:
  #
  # To redirect all users to access the site WITH the 'www.' prefix,
  # (http://example.com/... will be redirected to http://www.example.com/...)
  # uncomment the following:
  # RewriteCond %{HTTP_HOST} !^www. [NC]
  # RewriteRule ^ http://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  #
  # To redirect all users to access the site WITHOUT the 'www.' prefix,
  # (http://www.example.com/... will be redirected to http://example.com/...)
  # uncomment the following:
  # RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
  # RewriteRule ^ http://%1%{REQUEST_URI} [L,R=301]

  # Modify the RewriteBase if you are using Drupal in a subdirectory or in a
  # VirtualDocumentRoot and the rewrite rules are not working properly.
  # For example if your site is at http://example.com/drupal uncomment and
  # modify the following line:
  # RewriteBase /drupal
  #
  # If your site is running in a VirtualDocumentRoot at http://example.com/,
  # uncomment the following line:
  # RewriteBase /

  # Pass all requests not referring directly to files in the filesystem to
  # index.php. Clean URLs are handled in drupal_environment_initialize().
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^ index.php [L]

  # Rules to correctly serve gzip compressed CSS and JS files.
  # Requires both mod_rewrite and mod_headers to be enabled.
  <IfModule mod_headers.c>
    # Serve gzip compressed CSS files if they exist and the client accepts gzip.
    RewriteCond %{HTTP:Accept-encoding} gzip
    RewriteCond %{REQUEST_FILENAME}.gz -s
    RewriteRule ^(.*).css $1.css.gz [QSA]

    # Serve gzip compressed JS files if they exist and the client accepts gzip.
    RewriteCond %{HTTP:Accept-encoding} gzip
    RewriteCond %{REQUEST_FILENAME}.gz -s
    RewriteRule ^(.*).js $1.js.gz [QSA]

    # Serve correct content types, and prevent mod_deflate double gzip.
    RewriteRule .css.gz$ - [T=text/css,E=no-gzip:1]
    RewriteRule .js.gz$ - [T=text/javascript,E=no-gzip:1]

    <FilesMatch "(.js.gz|.css.gz)$">
      # Serve correct encoding type.
      Header append Content-Encoding gzip
      # Force proxies to cache gzipped & non-gzipped css/js files separately.
      Header append Vary Accept-Encoding
    </FilesMatch>
  </IfModule>
</IfModule>

php_flag display_errors on
php_flag display_startup_errors on

On Github License

Files

Download PDF of Htaccess file
HTTP_HOST, no-gzip, REQUEST_FILENAME, REQUEST_URI

Comments

Apache