Code:
$HTTP["host"] =~ "(mysite.info|www.mysite.info)" {
#debug.log-request-header = "enable"
#debug.log-response-header = "enable"
#debug.log-request-handling = "enable"
url.rewrite-once = (
"/view/(.*)/(.*)/" => "/view_video.php?id=$1",
"/login/" => "/login.php",
"/tags/" => "/tags.php",
"/tag/(.*)/(.*)" => "/tag.php?search_string=$1&page=$2",
"/cache/" => "/index.php",
"/channels/" => "/channels.php",
"/upload/success/(.*)/(.*)/" => "/upload_success.php?id=$1&upload_id=$2",
"/upload/" => "/upload.php",
"/group/(.*)/join/(.*)/" => "/group_invite_confirm.php?group_url=$1&key=$2",
"/group/(.*)/invite/" => "/invite_members.php?group_url=$1",
"/group/(.*)/edit/" => "/group_edit.php?group_url=$1",
"/group/(.*)/" => "/group_home.php?group_url=$1",
"/logout/" => "/logout.php",
"/signup/" => "/signup.php",
"/pages/(.*).html$" => "/show_page.php?name=$1",
"/v/(.*)/" => "/video_embed.php?video_id=$1",
"/search/(.*)/(.*)" => "/search_videos.php?search_string=$1&page=$2",
"/style/(.*)/" => "/style.php?css=$1",
"/([^/\.]+)?/?$" => "/user.php?user_name=$1",
"/([^/\.]+)/favorites/(.*)" => "/([^/\.]+)/favorites/(.*)",
"/([^/\.]+)/playlist/(.*)" => "/user_playlist.php?user_name=$1&page=$2",
"/([^/\.]+)/friends/videos/(.*)" => "/user_friends_videos.php?user_name=$1&page=$2",
"/([^/\.]+)/friends/favorites/(.*)" => "/user.php?user_name=$1",
"/([^/\.]+)/friends/(.*)" => "/user_friends_favourites.php?user_name=$1&page=$2",
"/([^/\.]+)/public/(.*)$" => "/user_videos.php?user_name=$1&type=public&page=$2",
"/([^/\.]+)/private/(.*)$" => "/user_videos.php?user_name=$1&type=private&page=$2",
"/([^/\.]+)/groups/(.*)$" => "/user_groups.php?user_name=$1&page=$2",
"/([^/\.]+)/edit/(.*)$" => "/user_profile_edit.php?user_name=$1",
"/channel/(.*)/(.*)/recent/(.*)" => "/video.php?category=recent&chid=$1&page=$3",
"/channel/(.*)/(.*)/viewed/(.*)" => "/video.php?category=viewed&chid=$1&page=$3",
"/channel/(.*)/(.*)/" => "/channel_details.php?id=$1",
"/download/(.*)/" => "/download.php?video_id=$1",
"/friends/recommend/(.*)/" => "/recommend_friends.php?video_id=$1",
"/friends/invite/" => "/invite_friends.php?user_name=$1&page=$2",
"/friends/(.*)" => "/friends.php?page=$1",
"/detailed/recent/(.*)" => "/video.php?category=recent&page=$1&view_type=detailed",
"/detailed/viewed/(.*)" => "/video.php?category=viewed&page=$1&view_type=detailed",
"/detailed/discussed/(.*)" => "/video.php?category=discussed&page=$1&view_type=detailed",
"/detailed/favorites/(.*)" => "/video.php?category=favorites&page=$1&view_type=detailed",
"/detailed/rated/(.*)" => "/video.php?category=rated&page=$1&view_type=detailed",
"/detailed/featured/(.*)" => "/video.php?category=featured&page=$1&view_type=detailed",
"/detailed/random/(.*)" => "/video.php?category=random&page=$1&view_type=detailed",
"/recent/(.*)" => "/video.php?category=recent&page=$1",
"/viewed/(.*)" => "/video.php?category=viewed&page=$1",
"/edit/video/(.*)" => "/video_edit.php?video_id=$1",
"/discussed/(.*)" => "/video.php?category=discussed&page=$1",
"/favorites/(.*)" => "/video.php?category=favorites&page=$1",
"/rated/(.*)" => "/video.php?category=rated&page=$1",
"/featured/(.*)" => "/video.php?category=featured&page=$1",
"/random/(.*)" => "/video.php?category=random&page=$1",
"/rss/new/" => "/rss.php?type=new",
"/rss/comments/" => "/rss.php?type=comments",
"/rss/views/" => "/rss.php?type=views",
"/group/new/" => "/group_new.php",
"/group/(.*)/members/(.*)" => "/group_members.php?group_url=$1&page=$2",
"/group/(.*)/videos/(.*)" => "/group_videos.php?group_url=$1&page=$2",
"/group/(.*)/add/(.*)" => "/group_add_videos.php?group_url=$1&page=$2",
"/group/(.*)/fav/(.*)" => "/group_add_fav_videos.php?group_url=$1&page=$2",
"/group/(.*)/topic/(.*)" => "/group_posts.php?group_url=$1&topic_id=$2",
"/groups/(.*)/(.*)/(.*)" => "/groups.php?chid=$1&page=$3",
"/groups/(.*)/(.*)" => "/groups.php?category=$1&page=$2",
"/include/(.*)" => "/http://www.vshare.in",
"/verify/user/(.*)/(.*)/(.*)/" => "/user_signup_verify.php?u=$1&i=$2&k=$3",
"/verify/email/(.*)/(.*)/(.*)/" => "/confirm_email.php?u=$1&i=$2&k=$3",
"/confirm/friend/(.*)/(.*)" => "/friend_accept.php?id=$1&key=$2",
"/search/(.*)/(.*)/(.*)/(.*)/(.*)/(.*)" => "/advanced_search.php?words=$1&channels=$2&user=$3&relevence=$4&sort=$5&page=$6",
Bookmarks