2010-02-03 10:04:51 +01:00
|
|
|
<IfModule mod_rewrite.c>
|
|
|
|
Options +FollowSymLinks +ExecCGI
|
|
|
|
RewriteEngine On
|
|
|
|
RewriteBase /
|
|
|
|
|
|
|
|
# no-www.org
|
|
|
|
RewriteCond %{HTTP_HOST} ^www\.html5demos\.com$ [NC,OR]
|
|
|
|
RewriteCond %{HTTP_HOST} ^www\.html5demo\.com$ [NC,OR]
|
|
|
|
RewriteCond %{HTTP_HOST} ^html5demo\.com$ [NC]
|
|
|
|
RewriteRule ^(.*)$ http://html5demos.com/$1 [R=301,L]
|
|
|
|
|
2010-08-23 18:15:31 +02:00
|
|
|
# RewriteCond %{HTTP_REFERER} ^$ [OR]
|
|
|
|
# RewriteCond %{HTTP_REFERER} !^http://(www\.|offline\.)?html5demos.com/.*$
|
|
|
|
# RewriteRule \.(gif|jpg|swf|flv|png|ogv|mp4|webm|js)$ [R=404,L]
|
|
|
|
|
2010-02-03 10:04:51 +01:00
|
|
|
# if the file or directory does exist
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -d [OR]
|
|
|
|
RewriteCond %{REQUEST_FILENAME} -f
|
|
|
|
RewriteRule .* - [L]
|
|
|
|
|
|
|
|
RewriteCond %{REQUEST_FILENAME}.html -f
|
2010-03-04 13:07:09 +01:00
|
|
|
RewriteRule (.*) $1.html [QSA,L]
|
|
|
|
|
|
|
|
RewriteRule ^(.*)$ page.php [QSA,L]
|
2010-02-03 10:04:51 +01:00
|
|
|
|
|
|
|
</IfModule>
|