Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
### Mod_rewrite RewriteEngine On RewriteCond %{HTTP_HOST} ^domain\.com.\au [NC] RewriteRule ^(.*)$ http://www.domain.com.au/$1 [R=301,L] ### SILVERSTRIPE START ### RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$ RewriteCond %{REQUEST_URI} !/$ RewriteCond %{REQUEST_URI} !^/admin # Redirect to add a trailing slash RewriteRule (.*) http://www.domain.com.au/$1/ [R=301,L] RewriteCond %{REQUEST_URI} ^/home/$ [NC] RewriteRule (.*) http://www.domain.com.au/ [R=301,L] RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$ RewriteCond %{REQUEST_URI} ^(.*)$ RewriteCond %{REQUEST_FILENAME} !-f RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L] ### SILVERSTRIPE END ###
This paste will be private.
From the Design Piracy series on my blog: