.htaccess |
.htaccess |
asmith |
Jun 12 2008, 09:13 AM
Post
#1
|
Advanced Member Group: Members Posts: 198 Joined: 26-December 07 Member No.: 4,586 |
this server i'm working on, do not parse php codes in html extension.
i've tried add an apache handler and adding .html . not working . This is the .htaccess , large. but before i copy and paste it here, i added these lines in it, but still didn't worked : #AddHandler application/x-httpd-php .html #AddHandler server-parsed .html #AddHandler application/x-httpd-php4 .html AddHandler server-parsed .html AddHandler application/x-httpd-php4 .html AddType application/x-httpd-php4 .html , still not working. it shows a white page , nothing else. when i get the page souce, it shows php codes there. so i'm wondering why its shows php codes in the source of HTML , but do not show them on the page. and NOT Parsing them. this is the htaccess file : (someone else has written it) # $Author: zx $ # $Date: 2003/07/14 17:12:38 $ # deny most common except .php <FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module)$"> deny from all </FilesMatch> <Limit GET PUT POST> Order Allow,Deny Allow from all </Limit> #AddHandler application/x-httpd-php .html #AddHandler server-parsed .html #AddHandler application/x-httpd-php4 .html AddHandler server-parsed .html AddHandler application/x-httpd-php4 .html AddType application/x-httpd-php4 .html RewriteEngine on #The next lines check for Email Spammers Robots and redirect them to a fake page RewriteCond %{HTTP_USER_AGENT} ^Alexibot [OR] RewriteCond %{HTTP_USER_AGENT} ^asterias [OR] RewriteCond %{HTTP_USER_AGENT} ^BackDoorBot [OR] RewriteCond %{HTTP_USER_AGENT} ^Black.Hole [OR] RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR] RewriteCond %{HTTP_USER_AGENT} ^BlowFish [OR] RewriteCond %{HTTP_USER_AGENT} ^BotALot [OR] RewriteCond %{HTTP_USER_AGENT} ^BuiltBotTough [OR] RewriteCond %{HTTP_USER_AGENT} ^Bullseye [OR] RewriteCond %{HTTP_USER_AGENT} ^BunnySlippers [OR] RewriteCond %{HTTP_USER_AGENT} ^Cegbfeieh [OR] RewriteCond %{HTTP_USER_AGENT} ^CheeseBot [OR] RewriteCond %{HTTP_USER_AGENT} ^CherryPicker [OR] RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR] RewriteCond %{HTTP_USER_AGENT} ^CopyRightCheck [OR] RewriteCond %{HTTP_USER_AGENT} ^cosmos [OR] RewriteCond %{HTTP_USER_AGENT} ^Crescent [OR] RewriteCond %{HTTP_USER_AGENT} ^Custo [OR] RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR] RewriteCond %{HTTP_USER_AGENT} ^DittoSpyder [OR] RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR] RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR] RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR] RewriteCond %{HTTP_USER_AGENT} ^EmailCollector [OR] RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR] RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR] RewriteCond %{HTTP_USER_AGENT} ^EroCrawler [OR] RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR] RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR] RewriteCond %{HTTP_USER_AGENT} ^EyeNetIE [OR] RewriteCond %{HTTP_USER_AGENT} ^FlashGet [OR] RewriteCond %{HTTP_USER_AGENT} ^Foobot [OR] RewriteCond %{HTTP_USER_AGENT} ^FrontPage [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^GetRight [OR] RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR] RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR] RewriteCond %{HTTP_USER_AGENT} ^Googlebot-Image [OR] RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR] RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR] RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR] RewriteCond %{HTTP_USER_AGENT} ^Harvest [OR] RewriteCond %{HTTP_USER_AGENT} ^hloader [OR] RewriteCond %{HTTP_USER_AGENT} ^HMView [OR] RewriteCond %{HTTP_USER_AGENT} ^httplib [OR] RewriteCond %{HTTP_USER_AGENT} ^HTTrack [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^humanlinks [OR] RewriteCond %{HTTP_USER_AGENT} ^ia_archiver [OR] RewriteCond %{HTTP_USER_AGENT} ^Image\ Stripper [OR] RewriteCond %{HTTP_USER_AGENT} ^Image\ Sucker [OR] RewriteCond %{HTTP_USER_AGENT} ^Indy\ Library [NC,OR] RewriteCond %{HTTP_USER_AGENT} ^InfoNaviRobot [OR] RewriteCond %{HTTP_USER_AGENT} ^InterGET [OR] RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR] RewriteCond %{HTTP_USER_AGENT} ^JennyBot [OR] RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR] RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR] RewriteCond %{HTTP_USER_AGENT} ^Kenjin.Spider [OR] RewriteCond %{HTTP_USER_AGENT} ^Keyword.Density [OR] RewriteCond %{HTTP_USER_AGENT} ^larbin [OR] RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR] RewriteCond %{HTTP_USER_AGENT} ^LexiBot [OR] RewriteCond %{HTTP_USER_AGENT} ^libWeb/clsHTTP [OR] RewriteCond %{HTTP_USER_AGENT} ^LinkextractorPro [OR] RewriteCond %{HTTP_USER_AGENT} ^LinkScan/8.1a.Unix [OR] RewriteCond %{HTTP_USER_AGENT} ^LinkWalker [OR] RewriteCond %{HTTP_USER_AGENT} ^lwp-trivial [OR] RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR] RewriteCond %{HTTP_USER_AGENT} ^Mata.Hari [OR] RewriteCond %{HTTP_USER_AGENT} ^Microsoft.URL [OR] RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR] RewriteCond %{HTTP_USER_AGENT} ^MIIxpc [OR] RewriteCond %{HTTP_USER_AGENT} ^Mister.PiX [OR] RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR] RewriteCond %{HTTP_USER_AGENT} ^moget [OR] RewriteCond %{HTTP_USER_AGENT} ^Mozilla/2 [OR] RewriteCond %{HTTP_USER_AGENT} ^Mozilla/3.Mozilla/2.01 [OR] RewriteCond %{HTTP_USER_AGENT} ^Mozilla.*NEWT [OR] RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR] RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR] RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR] RewriteCond %{HTTP_USER_AGENT} ^NetMechanic [OR] RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR] RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR] RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR] RewriteCond %{HTTP_USER_AGENT} ^NICErsPRO [OR] RewriteCond %{HTTP_USER_AGENT} ^NPBot [OR] RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR] RewriteCond %{HTTP_USER_AGENT} ^Offline.Explorer [OR] RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR] RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [OR] RewriteCond %{HTTP_USER_AGENT} ^Openfind [OR] RewriteCond %{HTTP_USER_AGENT} ^PageGrabber [OR] RewriteCond %{HTTP_USER_AGENT} ^Papa\ Foto [OR] RewriteCond %{HTTP_USER_AGENT} ^pavuk [OR] RewriteCond %{HTTP_USER_AGENT} ^pcBrowser [OR] RewriteCond %{HTTP_USER_AGENT} ^ProPowerBot/2.14 [OR] RewriteCond %{HTTP_USER_AGENT} ^ProWebWalker [OR] RewriteCond %{HTTP_USER_AGENT} ^ProWebWalker [OR] RewriteCond %{HTTP_USER_AGENT} ^QueryN.Metasearch [OR] RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR] RewriteCond %{HTTP_USER_AGENT} ^RepoMonkey [OR] RewriteCond %{HTTP_USER_AGENT} ^RMA [OR] RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR] RewriteCond %{HTTP_USER_AGENT} ^SlySearch [OR] RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR] RewriteCond %{HTTP_USER_AGENT} ^SpankBot [OR] RewriteCond %{HTTP_USER_AGENT} ^spanner [OR] RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR] RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR] RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR] RewriteCond %{HTTP_USER_AGENT} ^suzuran [OR] RewriteCond %{HTTP_USER_AGENT} ^Szukacz/1.4 [OR] RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR] RewriteCond %{HTTP_USER_AGENT} ^Teleport [OR] RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR] RewriteCond %{HTTP_USER_AGENT} ^Telesoft [OR] RewriteCond %{HTTP_USER_AGENT} ^The.Intraformant [OR] RewriteCond %{HTTP_USER_AGENT} ^TheNomad [OR] RewriteCond %{HTTP_USER_AGENT} ^TightTwatBot [OR] RewriteCond %{HTTP_USER_AGENT} ^Titan [OR] RewriteCond %{HTTP_USER_AGENT} ^toCrawl/UrlDispatcher [OR] RewriteCond %{HTTP_USER_AGENT} ^toCrawl/UrlDispatcher [OR] RewriteCond %{HTTP_USER_AGENT} ^True_Robot [OR] RewriteCond %{HTTP_USER_AGENT} ^turingos [OR] RewriteCond %{HTTP_USER_AGENT} ^TurnitinBot/1.5 [OR] RewriteCond %{HTTP_USER_AGENT} ^URLy.Warning [OR] RewriteCond %{HTTP_USER_AGENT} ^VCI [OR] RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR] RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR] RewriteCond %{HTTP_USER_AGENT} ^WebBandit [OR] RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR] RewriteCond %{HTTP_USER_AGENT} ^WebEMailExtrac.* [OR] RewriteCond %{HTTP_USER_AGENT} ^WebEnhancer [OR] RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR] RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR] RewriteCond %{HTTP_USER_AGENT} ^Web.Image.Collector [OR] RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR] RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR] RewriteCond %{HTTP_USER_AGENT} ^WebmasterWorldForumBot [OR] RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR] RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR] RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR] RewriteCond %{HTTP_USER_AGENT} ^Website.Quester [OR] RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR] RewriteCond %{HTTP_USER_AGENT} ^Webster.Pro [OR] RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR] RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR] RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR] RewriteCond %{HTTP_USER_AGENT} ^WebZip [OR] RewriteCond %{HTTP_USER_AGENT} ^Wget [OR] RewriteCond %{HTTP_USER_AGENT} ^Widow [OR] RewriteCond %{HTTP_USER_AGENT} ^[Ww]eb[Bb]andit [OR] RewriteCond %{HTTP_USER_AGENT} ^WWW-Collector-E [OR] RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR] RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR] RewriteCond %{HTTP_USER_AGENT} ^Xenu's [OR] RewriteCond %{HTTP_USER_AGENT} ^Zeus RewriteRule ^.*$ emailsforyou.php [L] #RewriteCond %{HTTP_USER_AGENT} ^-?$ #RewriteRule ^.*$ /www/nukecops/noID.php [L] RewriteRule /index.html /index.php RewriteRule /Page-1017.html /Page-1017.php #Articles RewriteRule ^News-([0-9]*)-([a-z]*)-([0-9]*)-([0-9]*).html modules.php?name=News&file=article&sid=$1&mode=$2("der=$3&thold=$4 RewriteRule ^ShowNews([0-9]*)_page([0-9]*).html modules.php?name=News&op=showNews&id=$1&page=$2 RewriteRule ^News([0-9]*)_page([0-9]*).html modules.php?name=News&file=article&sid=$1&page=$2 RewriteRule ^News([1-9][0-9]*).* modules.php?name=News&file=article&sid=$1 RewriteRule ^News-topic-([0-9]*).html modules.php?name=News`"w_topic=$1 RewriteRule ^News-group-([0-9]*).html modules.php?name=News&op=showNews&id=$1 RewriteRule ^allnews.html modules.php?name=News&file=allindex RewriteRule ^ShowArticle([0-9]*)_page([0-9]*).html modules.php?name=article&pa=showarticle&id=$1&page=$2 RewriteRule ^Article-([0-9]*).html modules.php?name=article&pa=showarticle&id=$1 RewriteRule ^Article-group.html modules.php?name=article&pa=listarticle RewriteRule ^Article-List([0-9]*).html modules.php?name=article&pa=showAcategory&id=$1 #Content RewriteRule ^contentid-([1-9][0-9]*).html modules.php?name=Content&pa=showpageہd=$1 RewriteRule ^content-cat-([1-9][0-9]*).html modules.php?name=Content&pa=list_pages_categories&cid=$1 #FAQ RewriteRule ^faq.html modules.php?name=FAQ RewriteRule ^faq-([0-9]*)-([a-zA-Z0-9+]*).html modules.php?name=FAQ&myfaq=yes&id_cat=$1&categories=$2 #Forums RewriteRule ^forums.html modules.php?name=Forums RewriteRule ^forums.* modules.php?name=Forums&file=index RewriteRule ^forumx([0-9]+)-([0-9]+)-([0-9]+).html modules.php?name=Forums&file=viewforum&f=$1&topicdays=$2&start=$3 RewriteRule ^postlite([0-9]*)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?name=Forums&file=viewtopic&t=$1&highlight=$2 RewriteRule ^forum([1-9][0-9]*).* modules.php?name=Forums&file=viewforum&f=$1 RewriteRule ^posts([0-9]*)-([0-9]*).html modules.php?name=Forums&file=viewtopic&t=$1&start=$2 RewriteRule ^postx([0-9]+)-([0-9]+)-([0-9]+).html modules.php?name=Forums&file=viewtopic&t=$1&postdays=$2&postorder=asc&start=$3 RewriteRule ^post(p|t)([1-9][0-9]*).* modules.php?name=Forums&file=viewtopic&$1=$2 RewriteRule ^markread([0-9]*).html modules.php?name=Forums&file=viewforum&f=$1&mark=topics RewriteRule ^newposts([0-9]*).html modules.php?name=Forums&file=viewtopic&t=$1&view=newest RewriteRule ^fvote([0-9]*).html modules.php?name=Forums&file=posting&mode=vote&t=$1 RewriteRule ^forum-cat([0-9]*).html modules.php?name=Forums&file=index&c=$1 RewriteRule ^staff.html modules.php?name=Forums&file=staff RewriteRule ^ranks.html modules.php?name=Forums&file=ranks RewriteRule ^faqf.html modules.php?name=Forums&file=faq #NSN Group Downloads RewriteRule ^downloads-cat([0-9]*)-([0-9]*)-order([a-zA-Z]*).html modules.php?name=Downloads&cid=$1&min=$2("derby=$3 RewriteRule ^downloads-cat([0-9]*)-order([a-zA-Z]*).html modules.php?name=Downloads&cid=$1("derby=$2 RewriteRule ^downloads-cat([0-9]*).html modules.php?name=Downloads&cid=$1 RewriteRule ^downloads-rate([0-9]*)-(percent|num).html modules.php?name=Downloads&op=MostPopular&ratenum=$1&ratetype=$2 RewriteRule ^downloads-mostpop.html modules.php?name=Downloads&op=MostPopular RewriteRule ^downloads-shownew([0-9]*).html modules.php?name=Downloads&op=NewDownloads`"wdownloadshowdays=$1 RewriteRule ^downloads-new.html modules.php?name=Downloads&op=NewDownloads RewriteRule ^downloads-broken([0-9]*).html modules.php?name=Downloads&op=brokendownload&lid=$1 RewriteRule ^downloads-([0-9]*).html modules.php?name=Downloads&op=getit&lid=$1 RewriteRule ^downloads-mod([0-9]*).html modules.php?name=Downloads&op=modifydownloadrequest&lid=$1 RewriteRule ^downloads-search-([a-zA-Z0-9_-]*)-([0-9]*)-order([a-zA-Z]*).html modules.php?name=Downloads&op=search&query=$1&min=$2("derby=$3 RewriteRule ^downloads-search-([a-zA-Z0-9_-]*)-order([a-zA-Z]*).html modules.php?name=Downloads&op=search&query=$1("derby=$2 RewriteRule ^downloads.html modules.php?name=Downloads RewriteRule ^submit_downloads.html modules.php?name=Submit_Downloads #StoriesArchive RewriteRule ^archive-([0-9]*)-([0-9]*).* modules.php?name=Stories_Archive&sa=show_month&year=$1&month=$2 RewriteRule ^archive-(show_all).html modules.php?name=Stories_Archive&sa=$1 RewriteRule ^archive.html modules.php?name=Stories_Archive #Reviews RewriteRule ^reviews.html modules.php?name=Reviews RewriteRule ^reviews-([0-9]*).html modules.php?name=Reviews&rop=showcontent&id=$1 RewriteRule ^reviews-new.html modules.php?name=Reviews&rop=write_review RewriteRule ^reviews-sortby-([a-zA-Z0-9]*).html modules.php?name=Reviews&rop=$1 RewriteRule ^reviews-comment-([0-9]*)-([[:punct:]a-zA-Z0-9]*).* modules.php?name=Reviews&rop=postcomment&id=$1&title=$2 RewriteRule ^reviews-([0-9]*)-delete.html modules.php?name=Reviews&rop=del_review&id_del=$1 RewriteRule ^reviews-([0-9]*)-edit.html modules.php?name=Reviews&rop=mod_review&id=$1 #Sections RewriteRule ^section-(printpage|viewarticle)-([0-9]*).html modules.php?name=Sections&op=$1&artid=$2 RewriteRule ^section-([0-9]*).html modules.php?name=Sections&op=listarticles&secid=$1 RewriteRule ^sections.html modules.php?name=Sections #Surveys RewriteRule ^surveys.html modules.php?name=Surveys RewriteRule ^survey([a-zA-Z0-9]*)results.html modules.php?name=Surveys&op=results&pollID=$1 RewriteRule ^survey([a-zA-Z0-9]*).html modules.php?name=Surveys&pollID=$1 #Submit RewriteRule ^submit.html modules.php?name=Submit_News #Search #RewriteRule ^search.html modules.php?name=Search #Top10 RewriteRule ^top-([[:print:]]*).html modules.php?name=Top&zx=$1 RewriteRule ^top.html modules.php?name=Top #Topics RewriteRule ^topics.html modules.php?name=Topics #Your Account RewriteRule ^account-userinfo-([a-zA-Z0-9_-]*).html modules.php?name=Your_Account&op=userinfo&username=$1 RewriteRule ^account-edituser.html modules.php?name=Your_Account&op=edituser RewriteRule ^account-edithome.html modules.php?name=Your_Account&op=edithome RewriteRule ^account-editcomm.html modules.php?name=Your_Account&op=editcomm RewriteRule ^account-chgtheme.html modules.php?name=Your_Account&op=chgtheme RewriteRule ^account-logout.html modules.php?name=Your_Account&op=logout RewriteRule ^account-delete.html modules.php?name=Your_Account&op=delete #Workboard RewriteRule ^workboard-project-([0-9]*)-(status_id|task_name|priority_id)-(asc|desc).html modules.php?name=Work_Board&op=WBViewProject&project_id=$1&column=$2&direction=$3 RewriteRule ^workboard-map-(status_id|task_name|priority_id)-(asc|desc).html modules.php?name=Work_Board&op=WBTaskMap&column=$1&direction=$2 RewriteRule ^workboard-project-([0-9]*).html modules.php?name=Work_Board&op=WBViewProject&project_id=$1 RewriteRule ^workboard-task-([0-9]*).html modules.php?name=Work_Board&op=WBViewTask&task_id=$1 RewriteRule ^workboard-map.html modules.php?name=Work_Board&op=WBTaskMap RewriteRule ^workboard-list.html modules.php?name=Work_Board&op=WBViewTaskList RewriteRule ^workboard.html modules.php?name=Work_Board #INP Calendar RewriteRule ^calendar-calep.html modules.php?name=INP_Calendar&file=index&op=Calep RewriteRule ^calendar-summer.html modules.php?name=INP_Calendar&file=index&op=Summer RewriteRule ^calendar-cale.html modules.php?name=INP_Calendar&file=index&op=Cale RewriteRule ^calendar-winter.html modules.php?name=INP_Calendar&file=index&op=Winter RewriteRule ^calendar.html modules.php?name=INP_Calendar #AvantGo RewriteRule ^avantgo.html modules.php?name=AvantGo #Recommend_Us RewriteRule ^recommend_us.html modules.php?name=Recommend_Us #Calculator RewriteRule ^calculator.html modules.php?name=Calculator #Whois RewriteRule ^whois-check.html modules.php?name=Whois&op=whois RewriteRule ^whois.html modules.php?name=Whois #GBook RewriteRule ^guestbook-(view|sign|admin).html modules.php?name=Gbook&op=$1 RewriteRule ^guestbook-comment-([0-9]*).html modules.php?name=Gbook&enviar=addcomment&id=$1 RewriteRule ^guestbook-addcommentary.html modules.php?name=Gbook&enviar=addcomment&act=addcommentary RewriteRule ^guestbook-edit-([0-9]*).html modules.php?name=Gbook&enviar=edit&id=$1 RewriteRule ^guestbook-go.html modules.php?name=Gbook&enviar=edit&act=go RewriteRule ^guestbook-delete-([0-9]*).html modules.php?name=Gbook&enviar=delete&id=$1 RewriteRule ^guestbook-deletesign-([0-9]*).html modules.php?name=Gbook&enviar=delete&act=deletesign&id=$1 RewriteRule ^guestbook.html modules.php?name=Gbook #Tablighat RewriteRule ^newadvers_p([0-9]*).html modules.php?name=Advertisement&func=newadver_p&page=$1 RewriteRule ^ads-group-([0-9]*).html modules.php?name=Advertisement&func=showAdvergroup&gid=$1 RewriteRule ^ads-group-p-([0-9]*)-([0-9]*).html modules.php?name=Advertisement&func=showAdverzirgroup&gid=$1&page=$2 RewriteRule ^wns_pic([0-9]*)_adv([0-9]*).html modules.php?name=Advertisement&func=wnspic$1_showAdver&id=$2 RewriteRule ^wns([0-9]*)_adv([0-9]*).html modules.php?name=Advertisement&func=wns$1_showAdver&id=$2 RewriteRule ^shnew_pic([0-9]*)_adv([0-9]*).html modules.php?name=Advertisement&func=shnewpic$1_showAdver&id=$2 RewriteRule ^shnew([0-9]*)_adv([0-9]*).html modules.php?name=Advertisement&func=shnew$1_showAdver&id=$2 RewriteRule ^Artsh_pic([0-9]*)_v([0-9]*).html modules.php?name=Advertisement&func=artshpic$1_showAdver&id=$2 RewriteRule ^Artshow([0-9]*)_v([0-9]*).html modules.php?name=Advertisement&func=artsh$1_showAdver&id=$2 RewriteRule ^g-ads-pic([0-9]*).html modules.php?name=Advertisement&func=gru_showAdver_pic&id=$1 RewriteRule ^group-ads([0-9]*).html modules.php?name=Advertisement&func=gru_showAdver&id=$1 RewriteRule ^advers_pic([0-9]*)_t([0-9]*).html modules.php?name=Advertisement&func=agpic$1_showAdver&id=$2 RewriteRule ^advers([0-9]*)_t([0-9]*).html modules.php?name=Advertisement&func=ag$1_showAdver&id=$2 RewriteRule ^ShowAdvers([0-9]*)_page([0-9]*).html modules.php?name=Advertisement&func=showAdver&id=$1&page=$2 RewriteRule ^advers-([0-9]*).html modules.php?name=Advertisement&func=ag_showAdver&id=$1 RewriteRule ^new-adspic-([0-9]*).html modules.php?name=Advertisement&func=new_showAdver_p&id=$1 RewriteRule ^new-ads-([0-9]*).html modules.php?name=Advertisement&func=new_showAdver&id=$1 RewriteRule ^ads-show-([0-9]*).html modules.php?name=Advertisement&func=showAdver&id=$1 RewriteRule ^ads-show-([0-9]*).html modules.php?name=Advertisement&func=showAdver&more=$1&id=$2 RewriteRule ^ads-show-([0-9]*)-([0-9]*).html modules.php?name=Advertisement&func=showAdver&id=$1&more=$2 RewriteRule ^newadver.html modules.php?name=Advertisement&file=manage&op=newadvertisement RewriteRule ^newadvers.html modules.php?name=Advertisement&func=newadver RewriteRule ^showall.html modules.php?name=Advertisement&file=manage&op=showalladver RewriteRule ^account.html modules.php?name=account&file=manage&op=account RewriteRule ^edituser.html modules.php?name=Your_Account&op=edituser RewriteRule ^RecommendSite.html modules.php?name=Recommend_Us&op=RecommendSite RewriteRule ^My_Gallery.html modules.php?name=My_eGallery RewriteRule ^links.html modules.php?name=W_Links RewriteRule ^allarticle([1-9][0-9]*).* modules.php?name=article&pa=showarticle&id=$1 RewriteRule ^Feedback.html modules.php?name=feedback RewriteRule ^Firekey-([0-9]*).html modules.php?name=Search&op=searching&keyid=$1 RewriteRule ^Hotkey-([0-9]*).html modules.php?name=Search&op=searching&hid=$1 #RewriteRule ^Search.html modules.php?name=Search RewriteRule ^News.html modules.php?name=News RewriteRule ^index.html index.php?newlang=farsi # $Log: .htaccess,v $ # Revision 1.6 2003/07/14 17:12:38 zx # CVS Keyword Substition Test Success. Will place $Log$ at the end of pages, and $Author$, $Date$ at the top. # |
jimlongo |
Jun 12 2008, 05:14 PM
Post
#2
|
This is My Life Group: Members Posts: 1,128 Joined: 24-August 06 From: t-dot Member No.: 16 |
Here's what i'm currently using for that. I seem to remember there are some server specific settings in here.
AddHandler application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml AddType application/x-httpd-php5 .php5 .php4 .php .php3 .php2 .phtml AddHandler application/x-httpd-php .html .htm |
Christian J |
Jun 13 2008, 08:19 AM
Post
#3
|
. Group: WDG Moderators Posts: 9,661 Joined: 10-August 06 Member No.: 7 |
This part seems to deny a few file extensions:
CODE # deny most common except .php <FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module)$"> deny from all </FilesMatch> I'm not good at regex, does "ihtml" mean a case-insensitive match for "html"? |
pandy |
Jun 13 2008, 12:48 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,732 Joined: 9-August 06 Member No.: 6 |
No, it means the extension 'ihtml.
http://www.ihtml.com/ |
Brian Chandler |
Jun 13 2008, 01:34 PM
Post
#5
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
This part seems to deny a few file extensions: CODE # deny most common except .php <FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module)$"> deny from all </FilesMatch> I'm not good at regex, does "ihtml" mean a case-insensitive match for "html"? If it did, 'inc' would search for nc, no? So how would you search for 'inc'? |
Lo-Fi Version | Time is now: 26th April 2024 - 11:47 PM |