salve.
vorrei utilizzare il mod_rewrite, solo che nn riesco proprio a farlo funzionare col mio phpnuke 6.9 .
ho provato e riprovato a seguire le guide per la creazione del file .htaccess, ma senza alcun risultato (il server va in error 500)
qualcuno mi sa aiutare?
se necessario, posso postare il codice che sto provando
grazie a tutti
kicko
PS: sto provando su server linux, e l'host mi ha confermato (via mail) che il mod_rewrite (e i file .htaccess) sono tranquillamente utilizzabili sul server.
Posta pure il codice... L'ho usato pochino, ma proviamo...
codice del file .htaccess
# $Author: robin $
# $Date: 2003/11/23 20:04:13 $
# 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>
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
#Articles
RewriteRule ^article-([0-9]*)-([a-z]*)-([0-9]*)-([0-9]*).html modules.php?name=News&file=article&sid=$1&mode=$2&order=$3&thold=$4
RewriteRule ^article([1-9][0-9]*).* modules.php?name=News&file=article&sid=$1
RewriteRule ^article-topic-([0-9]*).html modules.php?name=News&new_topic=$1
RewriteRule ^allnews.html modules.php?name=News&file=allindex
#Content
RewriteRule ^contentid-([1-9][0-9]*).html modules.php?name=Content&pa=showpage&pid=$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 ^forum-cat([0-9]*).html modules.php?name=Forums&c=$1
RewriteRule ^mark.html modules.php?name=Forums&file=index&mark=forums
RewriteRule ^postpoll([0-9]*).html modules.php?name=Forums&file=posting&t=$1
RewriteRule ^forumx([0-9]+)-([0-9]+)-([0-9]+).html modules.php?name=Forums&file=viewforum&f=$1&topicdays=$2&start=$3
RewriteRule ^to-(next|previous)-([0-9]*).html modules.php?name=Forums&file=viewtopic&t=$2&view=$1
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
#Downloads
RewriteRule ^downloads.html modules.php?name=Downloads
RewriteRule ^downloads-cat-([0-9]*).html&orderby=([a-zA-Z_]*) modules.php?name=Downloads&d_op=viewdownload&cid=$1&orderby=$2
RewriteRule ^downloads-cats-([0-9]*)-([0-9]*)-([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1&min=$2&orderby=titleA&show=$3
RewriteRule ^downloads-cat-([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1
RewriteRule ^downloads-file-([0-9]*)-details-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=viewdownloaddetails&lid=$1&ttitle=$2
RewriteRule ^downloads-file-([0-9]*).html modules.php?name=Downloads&d_op=getit&lid=$1
#Stories Archive
RewriteRule ^archive.html modules.php?name=Stories_Archive
RewriteRule ^archive-([0-9]*)-([0-9]*)-([a-zA-Z]*).* modules.php?name=Stories_Archive&sa=show_month&year=$1&month=$2&month_l=$3
#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
#TrackBack
RewriteRule ^trackback/([^/]*)/([1-9][0-9]*) modules.php?name=$1&file=trackback&id=$2 [QSA]
#Your Account
RewriteRule ^userinfo-([a-zA-Z0-9_-]*).html modules.php?name=Your_Account&op=userinfo&username=$1
#WebLinks
RewriteRule ^linksnew-([0-9]+).html modules.php?op=modload&name=Web_Links&file=index&l_op=NewLinksDate&selectdate=$1
RewriteRule ^linkop-(AddLink|MostPopular|NewLinks|RandomLink|TopRated).html modules.php?op=modload&name=Web_Links&file=index&l_op=$1
RewriteRule ^ratelink-([0-9]*)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?op=modload&name=Web_Links&file=index&l_op=ratelink&lid=$1&ttitle=$2
RewriteRule ^viewlink-([0-9]*).html modules.php?name=Web_Links&l_op=visit&lid=$1
RewriteRule ^links-([0-9]*)-([0-9]*)-([0-9]*).html modules.php?name=Web_Links&file=index&l_op=viewlink&cid=$1&min=$2&orderby=titleA&show=$3
RewriteRule ^link-([0-9]*).html modules.php?name=Web_Links&l_op=viewlink&cid=$1
RewriteRule ^links.html modules.php?name=Web_Links
# $Log: .htaccess,v $
# Revision 1.8 2003/11/23 20:04:13 robin
# Added regex for forums previous, next links as well as mark all forums read.
#
# Revision 1.7 2003/08/17 13:42:56 zx
# Added additional forums GT code
#
# Revision 1.6 2003/07/14 17:12:38 zx
# CVS Keyword Substition Test Success. Will place $Log: .htaccess,v $
# CVS Keyword Substition Test Success. Will place Revision 1.8 2003/11/23 20:04:13 robin
# CVS Keyword Substition Test Success. Will place Added regex for forums previous, next links as well as mark all forums read.
# CVS Keyword Substition Test Success. Will place
# CVS Keyword Substition Test Success. Will place Revision 1.7 2003/08/17 13:42:56 zx
# CVS Keyword Substition Test Success. Will place Added additional forums GT code
# CVS Keyword Substition Test Success. Will place at the end of pages, and $Author: robin $, $Date: 2003/11/23 20:04:13 $ at the top.
#
codice aggiunto nel file header.php
ob_start();
function replace_for_mod_rewrite(&$s) {
$urlin = array(
"'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)&mode=([a-z]*)&order=([0-9]*)&thold=([0-9]*)'",
"'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)modules.php\?name=News&new_topic=([0-9]*)'",
"'(?<!/)modules.php\?name=Stories_Archive&sa=show_month&year=([0-9]*)&month=([0-9]*)&month_l=([a-zA-Z]*)'",
"'(?<!/)modules.php\?name=Stories_Archive'",
"'(?<!/)modules.php\?name=Downloads&d_op=getit&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)&min=([0-9]*)&orderby=titleA&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownloaddetails&lid=([0-9]*)&ttitle=([/:\-\'{}()._&a-zA-Z0-9+= ]*)'",
"'(?<!/)modules.php\?name=(Downloads\")'",
"'(?<!/)modules.php\?name=Reviews&rop=showcontent&id=([0-9]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=write_review'",
"'(?<!/)modules.php\?name=Reviews&rop=postcomment&id=([0-9]*)&title=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=mod_review&id=([0-9]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=del_review&id_del=([0-9]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php\?name=Reviews'",
"'(?<!/)modules.php\?name=Submit_News'",
"'(?<!/)modules.php\?name=Topics'",
"'(?<!/)modules.php\?name=Top&zx=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Top'",
"'(?<!/)modules.php\?name=FAQ'",
"'(?<!/)modules.php\?name=FAQ&myfaq=yes&id_cat=([0-9]*)&categories=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]+)&postdays=([0-9]+)&postorder=asc&start=([0-9]+)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&view=(next|previous)'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]+)&topicdays=([0-9]+)&start=([0-9]+)'",
"'(?<!/)modules.php\?name=Content&pa=showpage&pid=([0-9]*)'",
"'(?<!/)modules.php\?name=Content&pa=list_pages_categories&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)&mark=topics'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&view=newest'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&start=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&highlight=([/:\-\'(){}.&=_a-zA-Z0-9+[:space:]]*)'",
"'(?<!/)modules.php\?name=Forums&file=posting&t=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=index&mark=forums'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&(p|t)=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=index&c=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=index'",
"'(?<!/)modules.php\?name=Sections&op=(printpage|viewarticle)&artid=([0-9]*)'",
"'(?<!/)modules.php\?name=Sections&op=listarticles&secid=([0-9]*)'",
"'(?<!/)modules.php\?name=Sections'",
"'(?<!/)modules.php\?name=Your_Account&op=userinfo&username=([a-zA-Z0-9_-]*)'",
"'(?<!/)modules.php\?name=Your_Account&op=userinfo&username=([a-zA-Z0-9_-]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=NewLinksDate&selectdate=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=(AddLink|MostPopular|NewLinks|RandomLink|TopRated)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=ratelink&lid=([0-9]*)&ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=visit&lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&cid=([0-9]*)&min=([0-9]*)&orderby=titleA&show=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links'"
);
$urlout = array(
"article-\\1-\\2-\\3-\\4.html",
"article\\1.html",
"article\\1.html",
"article-topic-\\1.html",
"archive-\\1-\\2-\\3.html",
"archive.html",
"downloads-file-\\1.html",
"downloads-cats-\\1-\\2-\\3.html",
"downloads-cat-\\1.html",
"downloads-file-\\1-details-\\2.html",
"downloads.html\"",
"reviews-\\1.html",
"reviews-new.html",
"reviews-comment-\\1-\\2",
"reviews-\\1-edit.html",
"reviews-\\1-delete.html",
"reviews-sortby-\\1.html",
"reviews.html",
"submit.html",
"topics.html",
"top-\\1.html",
"top.html",
"faq.html",
"faq-\\1-\\2.html",
"postx\\1-\\2-\\3.html",
"to-\\2-\\1.html",
"forumx\\1-\\2-\\3.html",
"contentid-\\1.html",
"content-cat-\\1.html",
"markread\\1.html",
"forum\\1.html",
"newposts\\1.html",
"posts\\1-\\2.html",
"postlite\\1-\\2.html",
"fvote\\1.html",
"mark.html",
"post\\1\\2.html",
"forum-cat\\1.html",
"forums.html",
"section-\\1-\\2.html",
"section-\\1.html",
"sections.html",
"userinfo-\\1.html",
"userinfo-\\1.html",
"linksnew-\\1.html",
"linkop-\\1.html",
"ratelink-\\1-\\2.html",
"viewlink-\\1.html",
"links-\\1-\\2-\\3.html",
"link-\\1.html",
"links.html"
);
$s = preg_replace($urlin, $urlout, $s);
return $s;
}
codice aggiunto nel file footer.php
$contents = ob_get_contents(); // store buffer in $contents
ob_end_clean(); // delete output buffer and stop buffering
echo replace_for_mod_rewrite($contents); //display modified buffer to screen
foot();
?>
Non potresti provare ad aggiungere una regola alla volta ? In questo modo dovresti verificare quella che ti da problemi...
ok.... proverņ una regola alla volta.
altra domanda: ho verificato tramite la funzione phpinfo(), e sul server il safe mode č attivo.
per utilizzare il mod_rewrite deve essere disattivato ?
Che io sappia non dovrebbe influire sui settaggi di Apache...
vBulletin® v3.6.4, Copyright ©2000-2025, Jelsoft Enterprises Ltd.