dsx75/hriko/master/web/.htaccess - Htaccess File

dsx75/hriko/master/web/.htaccess

#####
#
# Example .htaccess file for TYPO3 CMS - for use with Apache Webserver
#
# This file includes settings for the following configuration options:
#
# - Compression via TYPO3
# - Settings for mod_rewrite (URL-Rewriting)
# - PHP optimisation
# - Miscellaneous
#
# If you want to use it, you have to copy it to the root folder of your TYPO3 installation (if its
# not there already) and rename it to '.htaccess'. To make .htaccess files work, you might need to
# adjust the 'AllowOverride' directive in your Apache configuration file.
#
# IMPORTANT: You may need to change this file depending on your TYPO3 installation!
#
# Lines starting with a # are treated as comment and ignored by the web server.
#
# You should change every occurance of TYPO3root/ to the location where you have your website in.
# For example:
# If you have your website located at http://mysite.com/
# then your TYPO3root/ is just empty (remove 'TYPO3root/')
# If you have your website located at http://mysite.com/some/path/
# then your TYPO3root/ is some/path/ (search and replace)
#
# You can also use this configuration in your httpd.conf, but then you have to modify some lines,
# see the comments (search for 'httpd.conf')
#
# Questions about this file go to the matching Install mailing list, see
# http://typo3.org/documentation/mailing-lists/
#
####

### Begin: Compression via TYPO3 ###

# Compressing resource files will save bandwidth and so improve loading speed especially for users
# with slower internet connections. TYPO3 can compress the .js and .css files for you.
# *) Uncomment the following lines and
# *) Set $TYPO3_CONF_VARS['BE']['compressionLevel'] = '9' for the Backend
# *) Set $TYPO3_CONF_VARS['FE']['compressionLevel'] = '9' together with the TypoScript properties
#    config.compressJs and config.compressCss for GZIP compression of Frontend JS and CSS files.

#<FilesMatch ".js.gzip$">
#  AddType "text/javascript" .gzip
#</FilesMatch>
#<FilesMatch ".css.gzip$">
#  AddType "text/css" .gzip
#</FilesMatch>
#AddEncoding gzip .gzip

### End: Compression via TYPO3 ###

### Begin: Browser caching of ressource files ###

# Enable long browser caching for JavaScript and CSS files.

# This affects Frontend and Backend and increases performance.
# You can also add other file extensions (like gif, png, jpg), if you want them to be longer cached, too.

<FilesMatch ".(js|css)$">
  <IfModule mod_expires.c>
    ExpiresActive on
    ExpiresDefault "access plus 7 days"
  </IfModule>
  FileETag MTime Size
</FilesMatch>

### End: Browser caching of ressource files ###

### Begin: Settings for mod_rewrite ###

# You need rewriting, if you use a URL-Rewriting extension (RealURL, CoolUri).

<IfModule mod_rewrite.c>

# Enable URL rewriting
RewriteEngine On

# Change this path, if your TYPO3 installation is located in a subdirectory of the website root.
#RewriteBase /

# Rule for versioned static files, configured through:
# - $TYPO3_CONF_VARS['BE']['versionNumberInFilename']
# - $TYPO3_CONF_VARS['FE']['versionNumberInFilename']
# IMPORTANT: This rule has to be the very first RewriteCond in order to work!
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+).(d+).(php|js|css|png|jpg|gif|gzip)$ $1.$3 [L]

# Basic security checks
# - Restrict access to deleted files in Recycler directories
# - Restrict access to TypoScript files in default templates directories
# - Restrict access to Private extension directories
# For httpd.conf, use these lines instead of the next ones:
# RewriteRule ^/TYPO3root/fileadmin/(.*/)?_recycler_/ - [F]
# RewriteRule ^/TYPO3root/fileadmin/templates/.*(.txt|.ts)$ - [F]
# RewriteRule ^/TYPO3root/typo3conf/ext/[^/]+/Resources/Private/ - [F]
RewriteRule ^fileadmin/(.*/)?_recycler_/ - [F]
RewriteRule ^fileadmin/templates/.*(.txt|.ts)$ - [F]
RewriteRule ^typo3conf/ext/[^/]+/Resources/Private/ - [F]

# Stop rewrite processing, if we are in the typo3/ directory.
# For httpd.conf, use this line instead of the next one:
# RewriteRule ^/TYPO3root/(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon.ico) - [L]
RewriteRule ^(typo3/|t3lib/|fileadmin/|typo3conf/|typo3temp/|uploads/|favicon.ico) - [L]

# If the file/symlink/directory does not exist => Redirect to index.php.
# For httpd.conf, you need to prefix each '%{REQUEST_FILENAME}' with '%{DOCUMENT_ROOT}'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

# Main URL rewriting.
# For httpd.conf, use this line instead of the next one:
# RewriteRule .* /TYPO3root/index.php [L]
RewriteRule .* index.php [L]

</IfModule>

### End: Settings for mod_rewrite ###

### Begin: PHP optimisation ###

# If you do not change the following settings, the default values will be used.

# TYPO3 works fine with register_globals turned off.
# This is highly recommended, if your web server has it turned on.
#php_flag register_globals off

### End: PHP optimisation ###

### Begin: Miscellaneous ###

# Make sure that directory listings are disabled.
#Options -Indexes

### End: Miscellaneous ###

# Add your own rules here.

redirect 301 /billboards.htm /billboardy/

redirect 301 /b_tabs.htm /reklamne-polepy/
redirect 301 /b_tabs2.htm /reklamne-polepy/
redirect 301 /b_tabs3.htm /reklamne-polepy/
redirect 301 /b_tabs4.htm /reklamne-polepy/
redirect 301 /b_tabs5.htm /reklamne-polepy/
redirect 301 /b_tabs6.htm /reklamne-polepy/
redirect 301 /b_tabs7.htm /reklamne-polepy/
redirect 301 /b_tabs8.htm /reklamne-polepy/
redirect 301 /b_tabs9.htm /reklamne-polepy/
redirect 301 /b_tabs10.htm /reklamne-polepy/
redirect 301 /b_tabs11.htm /reklamne-polepy/

redirect 301 /cd_present.htm /webdesign/

redirect 301 /cd_projekty.htm /dizajn/
redirect 301 /cd_projekty2.htm /dizajn/
redirect 301 /cd_projekty3.htm /dizajn/

redirect 301 /copyright.htm /

redirect 301 /d_darceky.htm /reklamne-predmety/
redirect 301 /d_darceky2.htm /reklamne-predmety/
redirect 301 /d_darceky3.htm /reklamne-predmety/

redirect 301 /eye_anim1.swf /

redirect 301 /firma.htm /o-nas/

redirect 301 /fotobanka.htm /

redirect 301 /full_prefa.htm /dizajn/
redirect 301 /full_prefa2.htm /dizajn/
redirect 301 /full_prefa3.htm /dizajn/
redirect 301 /full_prefa4.htm /dizajn/
redirect 301 /full_prefa5.htm /dizajn/
redirect 301 /full_prefa6.htm /dizajn/

redirect 301 /full_sedacky.htm /dizajn/
redirect 301 /full_sedacky2.htm /dizajn/
redirect 301 /full_sedacky3.htm /dizajn/
redirect 301 /full_sedacky4.htm /dizajn/
redirect 301 /full_sedacky5.htm /dizajn/
redirect 301 /full_sedacky6.htm /dizajn/
redirect 301 /full_sedacky7.htm /dizajn/

redirect 301 /full_servis.htm /ponuka/

redirect 301 /g_projekty.htm /grafika/
redirect 301 /g_projekty2.htm /grafika/
redirect 301 /g_projekty3.htm /grafika/
redirect 301 /g_projekty4.htm /grafika/
redirect 301 /g_projekty5.htm /grafika/
redirect 301 /g_projekty6.htm /grafika/
redirect 301 /g_projekty7.htm /grafika/
redirect 301 /g_projekty8.htm /grafika/
redirect 301 /g_projekty9.htm /grafika/
redirect 301 /g_projekty10.htm /grafika/
redirect 301 /g_projekty11.htm /grafika/
redirect 301 /g_projekty12.htm /grafika/
redirect 301 /g_projekty13.htm /grafika/

redirect 301 /grafika.htm /grafika/

redirect 301 /index.htm /
redirect 301 /index_main.htm /

redirect 301 /kontakt.htm /kontakt/
redirect 301 /kontakt2.htm /kontakt/

redirect 301 /links.htm /referencie/

redirect 301 /portfolio.htm /referencie/
redirect 301 /portfolio2.htm /referencie/
redirect 301 /portfolio3.htm /referencie/

redirect 301 /pridat.htm /

redirect 301 /print_design.htm /tlac-papier/

redirect 301 /print_show.htm /referencie/
redirect 301 /print_show2.htm /referencie/
redirect 301 /print_show3.htm /referencie/
redirect 301 /print_show4.htm /referencie/
redirect 301 /print_show5.htm /referencie/
redirect 301 /print_show6.htm /referencie/
redirect 301 /print_show7.htm /referencie/
redirect 301 /print_show8.htm /referencie/
redirect 301 /print_show9.htm /referencie/
redirect 301 /print_show10.htm /referencie/
redirect 301 /print_show11.htm /referencie/
redirect 301 /print_show12.htm /referencie/
redirect 301 /print_show13.htm /referencie/
redirect 301 /print_show14.htm /referencie/
redirect 301 /print_show15.htm /referencie/

redirect 301 /pro_elektro.htm /referencie/
redirect 301 /sitemap.htm /
redirect 301 /sluzby.htm /ponuka/

redirect 301 /v_vystavy.htm /ponuka/
redirect 301 /v_vystavy2.htm /ponuka/
redirect 301 /v_vystavy3.htm /ponuka/
redirect 301 /v_vystavy4.htm /ponuka/
redirect 301 /vystavy.htm /ponuka/

redirect 301 /webdesign.htm /webdesign/

On Github License

Files

Download PDF of Htaccess file
DOCUMENT_ROOT, REQUEST_FILENAME, static

Comments

Apache