RewriteEngine on

RewriteCond %{HTTP_REFERER} !^http://yoursite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://yoursite.com$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com/.*$ [NC]
RewriteCond %{HTTP_REFERER} !^http://www.yoursite.com$ [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp|js|css)$ – [F,NC]

enable by setting the flag in .htaccess

php_flag short_open_tag on

Open php.ini ( /etc/php.ini or /usr/local/etc/php.ini), enter:
# vi php.ini

Set short_open_tag to On:
short_open_tag = On

Save and close the file. Restart webserver:
# service httpd restart
or
# /etc/init.d/httpd graceful

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

RewriteEngine On
# these 2 lines takes requests on port 80 the default (not encypted) and forwards them to https://
RewriteCond %{SERVER_PORT} ^80
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

# these 2 lines add www to the url if it isn’t there
RewriteCond %{HTTP_HOST} ^tldomainname.com
RewriteRule ^(.*)$ https://www.tldomainname.com/$1 [R=permanent,L]

© 2012 James Border Suffusion theme by Sayontan Sinha