Category: .htaccess


To protect your website from malware attack I per form follow a few steps and get protect website from further attack.

Clean your files or upload clean files and use following line in your.htaccess file for further prevention of iframe /javascript injection.

RewriteEngine on
RewriteCond %{QUERY_STRING} ^.*(;|<|>|’|”|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark).* [NC]
RewriteRule .* – [F]

This code is generally uploaded through FTP from infected PC, please scan your PC and change your FTP / control panel password asap.

Feel free to post comment for any query..

How to use .HTACCESS

Hi frnd’s during a regular project I setup .htaccess file with the following code for general rewrite with name :

Options +FollowSymlinks
RewriteEngine on
RewriteRule ^mylink/(.*)$ myfile.php?request_variable_name=$1

RewriteRule ^(.*)/mylink2/(.*).html$ mylinkfile2.php?request_variable_name1=$1&static_request_variable_name=value&request_variable_name2=$2 [NC]

———————————————–

So in the above ex. I try to rewrite mylink – seo url with the slug (the request variable) to take there values in myfile.php with the request variable names the only trick is $1, $2 that to be taken as value.

Powered by WordPress. Theme: Motion by 85ideas.