# Use PHP5.4 Single php.ini as default #AddHandler application/x-httpd-php54s .php AddHandler x-httpd-php5-3 .php AddHandler application/x-httpd-php5 .php RewriteOptions inherit RewriteEngine on RewriteCond %{HTTP_HOST} ^.*$ RewriteRule ^portal\/?$ "http\:\/\/www\.ptsims\.net\/forum" [R=301,L] RewriteCond %{HTTP_REFERER} !^http://docmath.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://docmath.net$ [NC] #RewriteCond %{HTTP_REFERER} !^http://ptsims.docmath.net/.*$ [NC] #RewriteCond %{HTTP_REFERER} !^http://ptsims.docmath.net$ [NC] RewriteCond %{HTTP_REFERER} !^http://ptsims.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://ptsims.net$ [NC] RewriteCond %{HTTP_REFERER} !^http://sonic.ptsims.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://sonic.ptsims.net$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.docmath.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.docmath.net$ [NC] #RewriteCond %{HTTP_REFERER} !^http://www.ptsims.docmath.net/.*$ [NC] #RewriteCond %{HTTP_REFERER} !^http://www.ptsims.docmath.net$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.ptsims.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.ptsims.net$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.sonic.ptsims.net/.*$ [NC] RewriteCond %{HTTP_REFERER} !^http://www.sonic.ptsims.net$ [NC] RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]