#AuthType Basic #AuthName "Password Required" #AuthUserFile /etc/httpd/conf/.htpasswd #Require valid-user RewriteEngine On RewriteBase / AddDefaultCharset UTF-8 #RewriteRule ^/test/(.*)-view(.*).html /test/content.php?id=$1 [L,QSA] RewriteRule (.db)$ disallowed.php [L,NC,QSA] RewriteRule ^view(.*).html content.php?id=$1 [L,QSA] RewriteRule ^(.*)-(.*).html content.php?id=$2 [L,QSA] ##################### Mobile ##################### RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{HTTP_USER_AGENT} iphone|ipad|android|blackberry [NC] RewriteCond %{REQUEST_FILENAME} !(\.css|\.js|\.jpg|\.jpeg|\.gif|\.png|\.ico|\.eot|\.svg|\.ttf|\.woff)$ [NC] RewriteCond %{REQUEST_FILENAME} !content.php RewriteRule ^ mobile/index.html [L,NC,QSA] RewriteRule ^(.*)/feed get_xml.php?t=$1 [L,QSA] RewriteRule ^(news|howto|app|phone) list_content.php?t=$1 [L,QSA] RewriteRule readtagcloud kweblink/readtagcloud.php [L,QSA] RewriteRule ^(photo|vdo)/view(.*).html box_content.php?t=$1&id=$2 [L,QSA] RewriteRule ^(photo|vdo)/(.*)_(.*).html box_content.php?t=$1&id=$3&url=$2 [L,QSA] RewriteRule ^(boxvideo.php|vdo) get_listBox.php?type=vdo [L,QSA] RewriteRule ^(boxphoto.php|photo) get_listBox.php?type=photo [L,QSA] #RewriteRule index_android.php [L,QSA] #RewriteRule ^intrend/ intrend.php [L]