.htaccess allow all hight cntrol in url code example

Example 1: .htaccess allow all hight cntrol in url

RewriteCond %{HTTP_USER_AGENT} ^.*iPad.*$
RewriteRule ^(.*)$ http://yourdomain.com/folderfortablets [R=301]
RewriteCond %{HTTP_USER_AGENT} ^.*Android.*$
RewriteRule ^(.*)$ http://yourdomain.com/folderfortablets [R=301]

Example 2: .htaccess allow all hight cntrol in url

RewriteEngine on
RewriteRule ^content-([0-9]+).html$ content.php?id=$1

Example 3: .htaccess allow all hight cntrol in url

Options +FollowSymlinks
RewriteEngine On
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(www.)?domainname.com/ [nc]
RewriteRule .*.(gif|jpg|png)$ http://domainname.com/img/hotlink_f_o.png [nc]

Tags:

Misc Example