RewriteEngine On
Options -Indexes
php_value memory_limit 500M


RewriteCond %{HTTP_HOST} macwarrior.net [NC]
RewriteRule ^.* https://www.macbooster.net [R=301,L]

ErrorDocument 404 /404.php

RewriteRule ^purchase/?$ - [R=404,L]

RewriteRule ^how-tos/$ blog.php [L]

RewriteRule ^how-to/([^\/]+)$ blogdetail.php?idstr=$1 [L]

RewriteRule ^mobile/how-tos/$ mobile/blog.php [L]
RewriteRule ^mobile/how-to/([^\/]+)$ mobile/blogdetail.php?idstr=$1 [L]

RewriteCond %{REQUEST_URI} !^.*\.zip
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301]

RewriteRule ^mac-cleaning$ mac-cleaning.php [L]
RewriteRule ^mac-optimization$ mac-optimization.php [L]
RewriteRule ^mac-security$ mac-security.php [L]
