TypoLight rewrite rules?

Topics: Developer Forum, Project Management Forum, User Forum
Jun 14, 2009 at 9:01 AM

Hi @ all,

I already searched the whole forum for some TypoLight rewrite rules but unfortunately I couldn't find anything. The rules described here (http://www.typolight.org/forum/message/27680.html) don't seem to work with the latest version. Simply using the standard rewrite rules from the .htaccess also doesn't work ...

##
# Rewrite base
##
RewriteEngine On
RewriteBase /

##
# Block malicious requests
##
RewriteCond %{REQUEST_URI} (ftp|https?):|/etc/ [NC,OR]
RewriteCond %{QUERY_STRING} (ftp|https?):|/etc/ [NC]
RewriteRule .* - [F,L]

##
# Compress .js and .css files
##
AddEncoding gzip .gz
AddType "text/javascript" .gz
AddType "text/css" .gz
RewriteCond %{HTTP:Accept-encoding} gzip
RewriteCond %{REQUEST_FILENAME} \.(js|css)$
RewriteCond %{REQUEST_FILENAME}.gz -f
RewriteRule ^(.*)$ $1.gz [L]

##
# Rewrite TYPOlight URLs
##
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .*\.html$ index.php [L]

Can anybody please help me how to set up IIRF for the use with the current TypoLight Version 2.7.1?

Thank you very much in advance!

Regards,
Eric

Jun 15, 2009 at 5:26 PM

Looking at this RewriteRule .*\.html$ index.php [L] I think the error is that anything that ends in html gets rewritten to index.php without any paramters.

I'm not familiar with TYPOlight but I'd assume it would be something like RewriteRule .*\.html$ index.php?$1 [L] (but I might be wrong...)