[TYPO3-UG Dutch] 301 redirect

Jacco van der Post jacco at id-internetservices.com
Tue Jan 18 12:15:59 CET 2011


Vooruit, hier een goede .htaccess :)




php_value memory_limit 128M
php_value post_max_size 128M
php_value upload_max_filesize 128M

# *************************************
# REALURL
# *************************************
RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php


# *************************************
# Handle compressed .js and .css files correctly TYPO3 4.4 +
# *************************************
<FilesMatch "\.js\.gzip$">
   AddType "text/javascript" .gzip
</FilesMatch>
<FilesMatch "\.css\.gzip$">
   AddType "text/css" .gzip
</FilesMatch>
AddEncoding gzip .gzip


# *************************************
#   301 redirect oude links tbv SEO
# *************************************


RewriteCond %{REQUEST_URI} ^/bla/$
RewriteRule .* /blanieuw/ [L,R=301]
RewriteCond %{REQUEST_URI} ^/bla$
RewriteRule .* /blanieuw/ [L,R=301]

RewriteCond %{REQUEST_URI} ^/bliep/$
RewriteRule .* /bliepnieuw/ [L,R=301]
RewriteCond %{REQUEST_URI} ^/bliep$
RewriteRule .* /bliepnieuw/ [L,R=301]

#etc etc etc



-- 
Met vriendelijke groet
Kind Regards

Jacco van der Post
Certified TYPO3 Integrator

Tel +31 (0)24 3602100

www.id-internetservices.com


More information about the TYPO3-UG-Dutch mailing list