- Readme First! - Read and follow the rules, otherwise your posts will be closed
There are currently, 63 guest(s) and 1 member(s) that are online. You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - GoogleTap Mod-Rewrite [ ]
Author
Message
Mesum
Support Staff
Joined: Mar 11, 2003
Posts: 842
Location: Chicago
Posted:
Sun Aug 24, 2003 12:21 am
This is just killing me, I am following the main GoogleTap/Goolifier headers, adding links one after other, yet all the links I added are giving me 404s..., any idea why?
Here is code from header.php:
Code:
function replace_for_mod_rewrite(&$s)
{
$urlin =
array(
"'(?<!/)index.php'",
"'(?<!/)modules.php'",
"'(?<!/)gate.html\?name=News&file=comments&op=showreply&tid=([0-9]*)&sid=([0-9]*)&pid=([0-9]*)&mode=([a-zA-Z0-9+]*)&order=([0-9]*)&thold=([/:|\s\-\'{}().&_0-9+=]*)'",
"'(?<!/)gate.html\?name=News&file=categories&op=newindex&catid=([0-9]*)&pagenum=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=categories&op=newindex&catid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=categories&op=newindex&catid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=article&op=newindex&catid=([0-9]*)&pagenum=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=article&op=newindex&catid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&op=newindex&catid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=article&sid=([0-9]*)&mode=([a-zA-Z0-9+]*)&order=([0-9]*)&thold=([/:|\s\-\'{}().&_0-9+=]*)'",
"'(?<!/)gate.html\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&new_topic=([0-9]*)&pagenum=([0-9]*)'",
"'(?<!/)gate.html\?name=News&new_topic=([0-9]*)'",
"'(?<!/)gate.html\?name=News&new_topic=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=print&sid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&pagenum=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=index'",
"'(?<!/)gate.html\?name=News&file=index'",
"'(?<!/)gate.html\?name=Encyclopedia&op=list_terms&eid=([0-9]*)&ltr=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&op=list_terms&eid=([0-9]*)<r=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&op=content&tid=([0-9]*)&page=([0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&op=content&tid=([0-9]*)&page=([0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&op=content&tid=([0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&op=content&tid=([0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&op=list_content&eid=([0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&op=list_content&eid=([0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&file=index'",
"'(?<!/)gate.html\?name=Encyclopedia&file=index'",
"'(?<!/)gate.html\?name=Content&pa=showpage&pid=([0-9]*)'",
"'(?<!/)gate.html\?name=Content&pa=list_pages_categories&cid=([0-9]*)'",
"'(?<!/)gate.html\?name=FAQ&file=index'",
"'(?<!/)gate.html\?name=FAQ&myfaq=([a-zA-Z0-9+]*)&id_cat=([0-9]*)&categories=([a-zA-Z0-9+]*)'",
"'(?<!/)gate.html\?name=Stories_Archive&sa=show_month&year=([0-9]*)&month=([0-9]*)&month_l=([a-˙A-ß]*)'",
"'(?<!/)gate.html\?name=Stories_Archive&sa=show_all&min=([0-9]*)'",
"'(?<!/)gate.html\?name=Stories_Archive&sa=show_all'",
"'(?<!/)gate.html\?name=Stories_Archive'",
"'(?<!/)gate.html\?name=SPChat'",
"'(?<!/)gate.html\?name=Downloads&d_op=TopRated'",
"'(?<!/)topdowns.html&ratenum=(10|25|50)&ratetype=(num|percent)'",
"'(?<!/)gate.html\?name=Downloads&d_op=MostPopular'",
"'(?<!/)popdowns.html&ratenum=(10|25|50)&ratetype=(num|percent)'",
"'(?<!/)gate.html\?name=Downloads&d_op=NewDownloads&newdownloadshowdays=([0-9]*)'",
"'(?<!/)gate.html\?name=Downloads&d_op=NewDownloadsDate&selectdate=([0-9]*)'",
"'(?<!/)gate.html\?name=Downloads&d_op=NewDownloads'",
"'(?<!/)gate.html\?name=Downloads&d_op=getit&lid=([0-9]*)'",
"'(?<!/)gate.html\?name=Downloads&d_op=viewdownload&cid=([0-9]*)&orderby=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Downloads&d_op=viewdownload&cid=([0-9]*)&min=([0-9]*)&orderby=([a-zA-Z0-9]*)&show=([0-9]*)'",
"'(?<!/)gate.html\?name=Downloads&d_op=viewdownload&cid=([0-9]*)'",
"'(?<!/)gate.html\?name=(Downloads\")'",
"'(?<!/)gate.html\?name=NukeJokes&func=JokeView&jokeid=([1-9][0-9]*)'",
"'(?<!/)gate.html\?name=NukeJokes&func=CatView&cat=([1-9][0-9]*)'",
"'(?<!/)gate.html\?name=NukeJokes&file=index'",
"'(?<!/)gate.html\?name=Reviews&rop=showcontent&id=([0-9]*)'",
"'(?<!/)gate.html\?name=Reviews&rop=write_review'",
"'(?<!/)gate.html\?name=Reviews&rop=postcomment&id=([0-9]*)&title=([a-zA-Z0-9+]*)'",
"'(?<!/)gate.html\?name=Reviews&rop=mod_review&id=([0-9]*)'",
"'(?<!/)gate.html\?name=Reviews&rop=del_review&id_del=([0-9]*)'",
"'(?<!/)gate.html\?name=Reviews&rop=del_comment&cid=([0-9]*)&id=([0-9]*)'",
"'(?<!/)gate.html\?name=Reviews&rop=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Reviews'",
"'(?<!/)gate.html\?name=Sections&op=viewarticle&artid=([0-9]*)&page=([0-9]*)'",
"'(?<!/)gate.html\?name=Sections&op=viewarticle&artid=([0-9]*)&page=([0-9]*)'",
"'(?<!/)gate.html\?name=Sections&op=viewarticle&artid=([0-9]*)'",
"'(?<!/)gate.html\?name=Sections&op=printpage&artid=([0-9]*)'",
"'(?<!/)gate.html\?name=Sections&op=printpage&artid=([0-9]*)'",
"'(?<!/)gate.html\?name=Sections&op=listarticles&secid=([0-9]*)'",
"'(?<!/)gate.html\?name=Sections&op=listarticles&secid=([0-9]*)'",
"'(?<!/)gate.html\?name=Sections'",
"'(?<!/)gate.html\?name=Search&topic=([0-9]*)'",
"'(?<!/)gate.html\?name=Search&topic=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&pollID=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&op=results&pollID=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&op=results&pollID=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&file=comments&op=Reply&pid=([0-9]*)&pollID=([0-9]*)&mode=([a-zA-Z0-9+]*)&order=([0-9]*)&thold=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&file=comments&op=Reply&pid=([0-9]*)&pollID=([0-9]*)&mode=([a-zA-Z0-9+]*)&order=([0-9]*)&thold=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&file=comments&op=showreply&tid=([0-9]*)&pollID=([0-9]*)&pid=([0-9]*)&mode=([a-zA-Z0-9+]*)&order=([0-9]*)&thold=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&file=comments&pollID=([0-9]*)&pid=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&file=comments'",
"'(?<!/)gate.html\?name=Surveys'",
"'(?<!/)gate.html\?name=Topics'",
"'(?<!/)gate.html\?name=Top'",
"'(?<!/)gate.html\?name=Members_List&file=index&mode=([a-zA-Z0-9]*)&order=([a-zA-Z0-9]*)&start=([0-9]*)'",
"'(?<!/)gate.html\?name=Members_List&file=index'",
"'(?<!/)gate.html\?name=Members_List'",
"'(?<!/)gate.html\?name=Forums&file=search&search_author=([a-zA-Z0-9+=]*)'",
"'(?<!/)gate.html\?name=Forums&file=profile&mode=([a-zA-Z0-9+=]*)&u=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=profile&mode=([a-zA-Z0-9+=]*)&u=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewforum&f=([0-9]*)&topicdays=([0-9]*)&start=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewforum&f=([0-9]*)&mark=topics'",
"'(?<!/)gate.html\?name=Forums&file=viewforum&f=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewforum&f=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&view=previous'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&view=next'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&start=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&start=([0-9]*)&postdays=([0-9]*)&postorder=([a-zA-Z]*)&highlight=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&start=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&watch=topic&start=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&unwatch=topic&start=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&highlight=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&p=([0-9]*)&highlight=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&p=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&p=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=index&c=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=index&mark=forums'",
"'(?<!/)gate.html\?name=Forums&file=index'",
"'(?<!/)gate.html\?name=Forums&file=index'",
"'(?<!/)gate.html\?name=Web_Links&l_op=AddLink'",
"'(?<!/)gate.html\?name=Web_Links&l_op=RandomLink'",
"'(?<!/)gate.html\?name=Web_Links&l_op=TopRated'",
"'(?<!/)gate.html\?name=Web_Links&l_op=MostPopular'",
"'(?<!/)gate.html\?name=Web_Links&l_op=NewLinks&newlinkshowdays=([0-9]*)'",
"'(?<!/)gate.html\?name=Web_Links&l_op=NewLinksDate&selectdate=([0-9]*)'",
"'(?<!/)gate.html\?name=Web_Links&l_op=NewLinks'",
"'(?<!/)gate.html\?name=Web_Links&l_op=visit&lid=([0-9]*)'",
"'(?<!/)gate.html\?name=Web_Links&l_op=viewlink&cid=([0-9]*)&orderby=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Web_Links&l_op=viewlink&cid=([0-9]*)&min=([0-9]*)&orderby=([a-zA-Z0-9]*)&show=([0-9]*)'",
"'(?<!/)gate.html\?name=Web_Links&l_op=viewlink&cid=([0-9]*)'",
"'(?<!/)gate.html\?name=Your_Account&op=userinfo&username=([/:|\s\-\'{}().&_a-zA-Z0-9+=]*)'",
"'(?<!/)gate.html\?name=Your_Account&op=userinfo&username=([/:|\s\-\'{}().&_a-zA-Z0-9+=]*)'",
"'(?<!/)gate.html\?name=Your_Account&op=userinfo&username=([/:|\s\-\'{}().&_a-zA-Z0-9+=]*)'",
"'(?<!/)gate.html\?name=Contact'",
"'(?<!/)gate.html\?name=coppermine'",
"'(?<!/)gate.html\?name=Docs&file=disclaimer'",
"'(?<!/)gate.html\?name=Docs&file=privacy'",
"'(?<!/)gate.html\?name=Docs&file=terms'",
"'(?<!/)gate.html\?name=Statistics'",
"'(?<!/)gate.html\?name=More_News'",
"'(?<!/)gate.html\?name=Syndication'",
"'(?<!/)gate.html\?name=Stream'",
"'(?<!/)gate.html\?name=Hot_Or_Not'",
"'(?<!/)gate.html\?name=Reccomend_Us'",
"'(?<!/)gate.html\?name=FriendFinder'",
"'(?<!/)gate.html\?name=Journal'",
"'(?<!/)gate.html\?name=Web_Links'",
"'(?<!/)gate.html\?name=Search'",
"'(?<!/)gate.html\?name=Your_Account'",
"'(?<!/)gate.html\?name=Content'"
);
$urlout = array(
"index.html",
"gate.html",
"comment\\1-\\2-\\3\\4\\5\\6.html",
"cat\\1-\\2.html",
"cat\\1.html",
"cat\\1.html",
"cat\\1-\\2.html",
"cat\\1.html",
"cat\\1.html",
"article\\1.html",
"article\\1.html",
"article\\1.html",
"topic\\1-\\2.html",
"topic\\1.html",
"topic\\1.html",
"printout\\1.html",
"newspage\\1.html",
"articles",
"articles",
"dic\\1all\\2.html",
"dic\\1all\\2.html",
"term\\1-\\2.html",
"term\\1-\\2.html",
"term\\1.html",
"term\\1.html",
"dic\\1.html",
"dic\\1.html",
"encyclopedia.html",
"encyclopedia.html",
"contentid-\\1.html",
"content-cat-\\1.html",
"faq.html",
"faq-\\1-\\2-\\3",
"archive\\1-\\2.html",
"allarticles-\\1.html",
"allarticles.html",
"archive.html",
"chatrooms.html",
"topdowns.html",
"topdowns-\\1-\\2.html",
"popdowns.html",
"popdowns-\\1-\\2.html",
"newdownsw-\\1.html",
"newdownsd-\\1.html",
"newdowns.html",
"downfile\\1",
"downorder\\1-\\2.html",
"downcat\\1-\\2-\\3-\\4.html",
"downcat\\1.html",
"downloads.html\"",
"jokeid-\\1.html",
"jokecat-\\1.html",
"jokes.html",
"review\\1.html",
"reviews-new.html",
"reviews-comment-\\1-\\2",
"review\\1-edit.html",
"review\\1-delete.html",
"review\\1-del_comment\\2.html",
"reviews-sortby-\\1.html",
"reviews.html",
"secart\\1-page\\2.html",
"secart\\1-page\\2.html",
"secart\\1.html",
"secartprint\\1.html",
"secartprint\\1.html",
"section\\1.html",
"section\\1.html",
"sections.html",
"topic\\1.html",
"topic\\1.html",
"survey\\1.html",
"survey\\1-results.html",
"survey\\1-results.html",
"recom\\1-sur\\2-mode\\3-ord\\4-tre\\5.html",
"recom\\1-sur\\2-mode\\3-ord\\4-tre\\5.html",
"viewreply\\1-sur\\2-com\\3-mode\\4-ord\\5-tre\\6.html",
"commentsurvey\\1-post\\2.html",
"commentsurvey.html",
"surveys.html",
"topics.html",
"top.html",
"members-mode\\1-\\2-\\3.html",
"members.html",
"members.html",
"author-\\1.html",
"member-\\1-\\2.html",
"member-\\1-\\2.html",
"viewforum\\1-\\2-\\3.html",
"forum\\1.html",
"forum\\1.html",
"forum\\1.html",
"ptopic\\1.html",
"ntopic\\1.html",
"ftopic\\1-\\2-\\3-\\4.html",
"ftopic\\1.html",
"ftopic\\1-\\2.html",
"watchtopic\\1-\\2.html",
"unwatchtopic\\1-\\2.html",
"ftopic\\1.html",
"ftopic\\1.html",
"sutra\\1.html",
"sutra\\1.html",
"sutra\\1.html",
"fcat\\1.html",
"forums.html",
"forums.html",
"forums.html",
"addlink.html",
"randomlink.html",
"toplinks.html",
"poplinks.html",
"newlinksw-\\1.html",
"newlinksd-\\1.html",
"newlinks.html",
"vlink\\1.html",
"linkorder\\1-\\2.html",
"links\\1-\\2-\\3-\\4.html",
"links\\1.html",
"userinfo-\\1.html",
"userinfo-\\1.html",
"userinfo-\\1.html",
"contact.html",
"photogallery.html",
"disclaimer.html",
"privacy.html",
"tos.html",
"stats.html",
"morenews.html",
"share.html",
"music.html",
"hot-or-not.html",
"recommend.html",
"friendfinder.html",
"journals.html",
"weblinks.html",
"search.html",
"account.html",
"content.html"
);
Now could anyone tell me where did I make the wrong turn?
topic re-titled by mikem
_________________Only FREE Dating site for Desis.
Daniel-cmw
Site Admin
Joined: Mar 02, 2003
Posts: 1662
Location: The UK!
Posted:
Sun Aug 24, 2003 1:54 am
Does your host support mod_rewrite?
_________________Read Me
badger
Sergeant
Joined: Apr 02, 2003
Posts: 113
Location: Scotland
Posted:
Sun Aug 24, 2003 3:34 am
post your .htaccess file too
Zhen-Xjell
Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Sun Aug 24, 2003 4:48 am
Yes you need to reverse the translations in the .htaccess file.
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de ] [en ] [wiki ]
Mesum
Support Staff
Joined: Mar 11, 2003
Posts: 842
Location: Chicago
Posted:
Sun Aug 24, 2003 9:33 am
Here is my .htaccess file.
I forgot to tell ya'll that it was giving me a 500 server error.
Code:
DirectoryIndex index.php index.cgi index.pl index.shtml index.html
<Limit GET PUT POST>
order allow,deny
deny from 80.179.128.
deny from 64.140.49.
allow from all
</Limit>
# deny most common except .php
<FilesMatch "\.(inc|tpl|h|ihtml|sql|ini|conf|class|bin|spd|theme|module|exe)$">
deny from all
</FilesMatch>
#Disable .htaccess viewing from browser
<Files ~ "^\.ht">
Order allow,deny
Deny from all
Satisfy All
</Files>
<Files ~ "\config.php$">
deny from all
</Files>
# change to yoursite.com
ErrorDocument 404 http://www.chicagobase.com/index.html
RewriteEngine On
RewriteRule ^index.html index.php
RewriteRule ^gate.html modules.php
#Articles
RewriteRule ^article([1-9][0-9]*).* gate.html?name=News&file=article&sid=$1
RewriteRule ^article([1-9][0-9]*).html gate.html?name=News&file=article&sid=$1&mode=$2&order=$3&thold=$4
RewriteRule ^topic([1-9][0-9]*)-([0-9]*).* gate.html?name=News&new_topic=$1&pagenum=$2
RewriteRule ^topic([1-9][0-9]*).* gate.html?name=News&new_topic=$1
RewriteRule ^cat([1-9][0-9]*)-([0-9]*).* gate.html?name=News&file=categories&op=newindex&catid=$1&pagenum=$2
RewriteRule ^cat([1-9][0-9]*).* gate.html?name=News&file=categories&op=newindex&catid=$1
RewriteRule ^cat([1-9][0-9]*)-([0-9]*).* gate.html?name=News&file=article&op=newindex&catid=$1&pagenum=$2
RewriteRule ^cat([1-9][0-9]*).* gate.html?name=News&file=article&op=newindex&catid=$1
RewriteRule ^printout([1-9][0-9]*).* gate.html?name=News&file=print&sid=$1
RewriteRule ^newspage([1-9][0-9]*).* gate.html?name=News&pagenum=$1
RewriteRule ^comment([0-9]*)-([0-9]*)-([0-9]*)([a-zA-Z0-9]*)([0-9]*)([/:|\s\-\'{}().&_0-9+=]*).html gate.html?name=News&file=comments&op=showreply&tid=$1&sid=$2&pid=$3&mode=$4&order=$5&thold=$6
RewriteRule ^articles.* gate.html?name=News&file=index
#Content
RewriteRule ^contentid-([1-9][0-9]*).html gate.html?name=Content&pa=showpage&pid=$1
RewriteRule ^content-cat-([1-9][0-9]*).html gate.html?name=Content&pa=list_pages_categories&cid=$1
#My modification
RewriteRule ^contents.html gate.html?name=Content
#Downloads
RewriteRule ^topdowns.html gate.html?name=Downloads&d_op=TopRated
RewriteRule ^topdowns-(10|25|50)-(num|percent).html topdowns.html&ratenum=$1&ratetype=$2
RewriteRule ^popdowns.html gate.html?name=Downloads&d_op=MostPopular
RewriteRule ^popdowns-(10|25|50)-(num|percent).html popdowns.html&ratenum=$1&ratetype=$2
RewriteRule ^newdowns.html gate.html?name=Downloads&d_op=NewDownloads
RewriteRule ^newdownsw-([0-9]*).html gate.html?name=Downloads&d_op=NewDownloads&newdownloadshowdays=$1
RewriteRule ^newdownsd-([0-9]*).html gate.html?name=Downloads&d_op=NewDownloadsDate&selectdate=$1
RewriteRule ^downcat([0-9]*).html gate.html?name=Downloads&d_op=viewdownload&cid=$1
RewriteRule ^downorder([0-9]*)-([a-zA-Z0-9]*).html gate.html?name=Downloads&d_op=viedownload&cid=$1&orderby=$2
RewriteRule ^downfile([0-9]*) gate.html?name=Downloads&d_op=getit&lid=$1
RewriteRule ^downcat([0-9]*).html&orderby=([a-zA-Z_]*) gate.html?name=Downloads&d_op=viewdownload&cid=$1&orderby=$2
RewriteRule ^downcat([0-9]*)-([0-9]*)-([a-zA-Z0-9]*)-([0-9]*).html gate.html?name=Downloads&d_op=viewdownload&cid=$1&min=$2&orderby=$3&show=$4
RewriteRule ^downloads.html gate.html?name=Downloads
#Encyclopedia
RewriteRule ^dic([1-9][0-9]*)all([a-zA-Z0-9]*).* gate.html?name=Encyclopedia&op=terms&eid=$1<r=$2
RewriteRule ^term([1-9][0-9]*)-([1-9][0-9]*).* gate.html?name=Encyclopedia&op=content&tid=$1&page=$2
RewriteRule ^term([1-9][0-9]*).* gate.html?name=Encyclopedia&op=content&tid=$1
RewriteRule ^dic([1-9][0-9]*).* gate.html?name=Encyclopedia&op=list_content&eid=$1
RewriteRule ^encyclopedia.* gate.html?name=Encyclopedia&file=index
#FAQ
RewriteRule ^faq.html gate.html?name=FAQ&file=index
RewriteRule ^faq-([a-zA-Z0-9+]*)-([0-9]*)-([a-zA-Z0-9+]*) gate.html?name=FAQ&myfaq=$1&id_cat=$2&categories=$3
#Forums
RewriteRule ^forums.* gate.html?name=Forums&file=index
RewriteRule ^forums.* gate.html?name=Forums&file=index&mark=forums
RewriteRule ^fcat([0-9]*).* gate.html?name=Forums&file=index&c=$1
RewriteRule ^forum([0-9]*).* gate.html?name=Forums&file=viewforum&f=$1&mark=topic
RewriteRule ^viewforum([0-9]*)-([0-9]*)-([0-9]*).* gate.html?name=Forums&file=viewforum&f=$1&topicdays=$2&start=$3
RewriteRule ^forum([0-9]*).* gate.html?name=Forums&file=viewforum&f=$1
RewriteRule ^ptopic([0-9]*).* gate.html?name=Forums&file=viewtopic&t=$1&view=previous
RewriteRule ^ntopic([0-9]*).* gate.html?name=Forums&file=viewtopic&t=$1&view=next
RewriteRule ^watchtopic([0-9]*)-([0-9]*).* gate.html?name=Forums&file=viewtopic&t=$1&watch=topic&start=$2
RewriteRule ^unwatchtopic([0-9]*)-([0-9]*).* gate.html?name=Forums&file=viewtopic&t=$1&unwatch=topic&start=$2
RewriteRule ^ftopic([0-9]*)-([0-9]*)-([a-zA-Z]*)-([0-9]*).* gate.html?name=Forums&file=viewtopic&t=$1&postdays=$2&postorder=$3&start=$4
RewriteRule ^ftopic([0-9]*)-([0-9]*).* gate.html?name=Forums&file=viewtopic&t=$1&start=$2
RewriteRule ^ftopic([0-9]*).* gate.html?name=Forums&file=viewtopic&t=$1
RewriteRule ^ftopic([0-9]*).* gate.html?name=Forums&file=viewtopic&t=$1&highlight=$2
RewriteRule ^ftopic([0-9]*).html gate.html?name=Forums&file=viewtopic&t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
RewriteRule ^author-([a-zA-Z0-9+=]*).html gate.html?name=Forums&file=search&search_author=$1
RewriteRule ^member-([a-zA-Z0-9+=]*)-([0-9]*).html gate.html?name=Forums&file=profile&mode=$1&u=$2
RewriteRule ^sutra([0-9]*).* gate.html?name=Forums&file=viewtopic&p=$1&highlight=$2
RewriteRule ^sutra([0-9]*).* gate.html?name=Forums&file=viewtopic&p=$1
#Members
RewriteRule ^members.html gate.html?name=Members_List
RewriteRule ^members.html gate.html?name=Members_List&file=index
RewriteRule ^members-mode([a-zA-Z0-9]*)-([a-zA-Z0-9]*)-([0-9]*).html gate.html?name=Members_List&file=index&mode=$1&order=$2&start=$3
#NukeJokes
RewriteRule ^jokeid-([1-9][0-9]*).html gate.html?name=NukeJokes&func=JokeView&jokeid=$1
RewriteRule ^jokecat-([0-9]*).html gate.html?name=NukeJokes&func=CatView&cat=$1
RewriteRule ^jokes.html gate.html?name=NukeJokes&file=index
#Reviews
RewriteRule ^reviews.html gate.html?name=Reviews
RewriteRule ^review([0-9]*).html gate.html?name=Reviews&rop=showcontent&id=$1
RewriteRule ^reviews-new.html gate.html?name=Reviews&rop=write_review
RewriteRule ^reviews-sortby-([a-zA-Z0-9]*).html gate.html?name=Reviews&rop=$1
RewriteRule ^reviews-comment-([0-9]*)-([a-zA-Z0-9]*) gate.html?name=Reviews&rop=postcomment&id=$1&title=$2
RewriteRule ^review([0-9]*)-delete.html gate.html?name=Reviews&rop=del_review&id_del=$1
RewriteRule ^review([0-9]*)-del_comment([0-9]*).html gate.html?name=Reviews&rop=del_comment&cid=$1&id=$2
RewriteRule ^review([0-9]*)-edit.html gate.html?name=Reviews&rop=mod_review&id=$1
#Search
RewriteRule ^topic([0-9]*).html gate.html?name=Search&topic=$1
#My Modification
RewriteRule ^search.html gate.html?name=Search
#Sections
RewriteRule ^secart([0-9]*)-page([0-9]*).html gate.html?name=Sections&op=viewarticle&artid=$1&page=$2
RewriteRule ^secart([0-9]*).html gate.html?name=Sections&op=viewarticle&artid=$1
RewriteRule ^secartprint([0-9]*).html gate.html?name=Sections&op=printpage&artid=$1
RewriteRule ^section([0-9]*).html gate.html?name=Sections&op=listarticles&secid=$1
RewriteRule ^sections.html gate.html?name=Sections
#Stories Archive
RewriteRule ^archive.html gate.html?name=Stories_Archive
RewriteRule ^allarticles.html gate.html?name=Stories_Archive&sa=show_all
RewriteRule ^allarticles-([0-9]*).html gate.html?name=Stories_Archive&sa=show_all&min=$1
RewriteRule ^archive([0-9]*)-([0-9]*).* gate.html?name=Stories_Archive&sa=show_month&year=$1&month=$2&month_l=$3
#Surveys
RewriteRule ^surveys.html gate.html?name=Surveys
RewriteRule ^survey([0-9]*)-results.html gate.html?name=Surveys&op=results&pollID=$1
RewriteRule ^survey([0-9]*).html gate.html?name=Surveys&pollID=$1
RewriteRule ^viewreply([0-9]*)-sur([0-9]*)-com([0-9]*)-mode([a-zA-Z0-9]*)-ord([0-9]*)-tre([0-9]*).html gate.html?name=Surveys&file=comments&op=showreply&tid=$1&pollID=$2&pid=$3&mode=$4&order=$5&thold=$6
RewriteRule ^recom([0-9]*)-sur([0-9]*)-mode([a-zA-Z0-9]*)-ord([0-9]*)-tre([0-9]*).html gate.html?name=Surveys&file=comments&op=Reply&pid=$1&pollID=$2&mode=$3&order=$4&thold=$5
RewriteRule ^commentsurvey([0-9]*)-post([0-9]*).html gate.html?name=Surveys&file=comments&pollID=$1&pid=$2
RewriteRule ^commentsurvey.html gate.html?name=Surveys&file=comments
#Top10
RewriteRule ^top.html gate.html?name=Top
#Topics
RewriteRule ^topics.html gate.html?name=Topics
#Web Links
RewriteRule ^addlink.html gate.html?name=Web_Links&l_op=AddLink
RewriteRule ^randomlink.html gate.html?name=Web_Links&l_op=RandomLink
RewriteRule ^toplinks.html gate.html?name=Web_Links&l_op=TopRated
RewriteRule ^poplinks.html gate.html?name=Web_Links&l_op=MostPopular
RewriteRule ^newlinks.html gate.html?name=Web_Links&l_op=NewLinks
RewriteRule ^newlinksw-([0-9]*).html gate.html?name=Web_Links&l_op=NewLinks&newlinkshowdays=$1
RewriteRule ^newlinksd-([0-9]*).html gate.html?name=Web_Links&l_op=NewLinksDate&selectdate=$1
RewriteRule ^vlink([0-9]*).html gate.html?name=Web_Links&l_op=visit&lid=$1
RewriteRule ^links([0-9]*).html gate.html?name=Web_Links&l_op=viewlink&cid=$1
RewriteRule ^linkorder([0-9]*)-([a-zA-Z0-9]*).html gate.html?name=Web_Links&l_op=viewlink&cid=$1&orderby=$2
RewriteRule ^links([0-9]*)-([0-9]*)-([a-zA-Z0-9]*)-([0-9]*).html gate.html?name=Web_Links&l_op=viewlink&cid=$1&min=$2&orderby=$3&show=$4
#Your Account
RewriteRule ^userinfo-([/:|\s\-\'{}().&_a-zA-Z0-9+=]*).html gate.html?name=Your_Account&op=userinfo&username=$1
#My Modification
RewriteRule ^account.html gate.html?name=Your_Account
#More Modifications
#Contact Us
RewriteRule ^contact.html gate.html?name=Contact
#Coppermine Gallery
RewriteRule ^photogallery.html gate.html?name=coppermine
#Docs
RewriteRule ^disclaimer.html gate.html?name=Docs&file=disclaimer
RewriteRule ^privacy.html gate.html?name=Docs&file=privacy
RewrtieRule ^tos.html gate.html?name=Docs&file=terms
#Stats
RewriteRule ^stats.html gate.html?name=Statistics
#More News
RewriteRule ^morenews.html gate.html?name=More_News
#Syndication
RewriteRule ^share.html gate.html?name=Syndication
#Stream
RewriteRule ^music.html gate.html?name=Stream
#Hot or Not
RewriteRule ^hotornot.html gate.html?name=Hot_Or_Not
#Recommend Us
RewriteRule ^recommend.html gate.html?name=Recommend_Us
#FriendFinder
RewriteRule ^friendfinder.html gate.html?name=FriendFinder
#Journal
RewriteRule ^journals.html gate.html?name=Journal
#SPChat
RewriteRule ^chatrooms.html gate.html?name=SPChat
That's exactly how I have my htaccess file.
And yes my server supports mod_rewrite
_________________Only FREE Dating site for Desis.
Mesum
Support Staff
Joined: Mar 11, 2003
Posts: 842
Location: Chicago
Posted:
Sun Aug 24, 2003 9:35 am
Zhen-Xjell
Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Sun Aug 24, 2003 10:04 am
You may not have mod_rewrite compiled. You need to check with your host.
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de ] [en ] [wiki ]
Mesum
Support Staff
Joined: Mar 11, 2003
Posts: 842
Location: Chicago
Posted:
Sun Aug 24, 2003 10:46 am
Zhen-Xjell
Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Sun Aug 24, 2003 11:58 am
Ok so it is working then. Yours seems pretty long though. let me read thru it.
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de ] [en ] [wiki ]
Mesum
Support Staff
Joined: Mar 11, 2003
Posts: 842
Location: Chicago
Posted:
Mon Aug 25, 2003 9:43 pm
Mesum
Support Staff
Joined: Mar 11, 2003
Posts: 842
Location: Chicago
Posted:
Mon Aug 25, 2003 10:00 pm
Update, figured that out too.... there are still few things missing, but I think I should be able to do it by the end of tomorrow night
Me is excited!
_________________Only FREE Dating site for Desis.
Mesum
Support Staff
Joined: Mar 11, 2003
Posts: 842
Location: Chicago
Posted:
Mon Aug 25, 2003 10:51 pm
Zhen-Xjell
Nuke Cops Founder
Joined: Nov 14, 2002
Posts: 5939
Posted:
Tue Aug 26, 2003 7:16 am
Sweet... post your success.
_________________ Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de ] [en ] [wiki ]
scabbed
Nuke Cadet
Joined: Sep 15, 2003
Posts: 7
Posted:
Mon Sep 15, 2003 12:58 pm
hello, first sorry for my english, i'm french
i have got a problem with the url rewriting for the encyclopedia module
i have put the code in my htaccess and my header , put it say that there is something wrong in my header ( when i put my initial header, i can go on encyclopedia.html but the rest of the link aren't changed )
here is a part of my htaccess and a part of my header
-htaccess :
Code:
#Encyclopedia
RewriteRule ^dic([1-9][0-9]*)all([a-zA-Z0-9]*).* modules.php?name=Encyclopedia&op=terms&eid=$1<r=$2
RewriteRule ^term([1-9][0-9]*)-([1-9][0-9]*).* modules.php?name=Encyclopedia&op=content&tid=$1&page=$2
RewriteRule ^term([1-9][0-9]*).* modules.php?name=Encyclopedia&op=content&tid=$1
RewriteRule ^dic([1-9][0-9]*).* modules.php?name=Encyclopedia&op=list_content&eid=$1
RewriteRule ^encyclopedia.* modules.php?name=Encyclopedia&file=index
- header :
Code:
"'(?<!/)modules.php\?name=Encyclopedia&op=list_terms&eid=([0-9]*)<r=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php\?name=Encyclopedia&op=list_terms&eid=([0-9]*)<r=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php\?name=Encyclopedia&op=content&tid=([0-9]*)&page=([0-9]*)'",
"'(?<!/)modules.php\?name=Encyclopedia&op=content&tid=([0-9]*)&page=([0-9]*)'",
"'(?<!/)modules.php\?name=Encyclopedia&op=content&tid=([0-9]*)'",
"'(?<!/)modules.php\?name=Encyclopedia&op=content&tid=([0-9]*)'",
"'(?<!/)modules.php\?name=Encyclopedia&op=list_content&eid=([0-9]*)'",
"'(?<!/)modules.php\?name=Encyclopedia&op=list_content&eid=([0-9]*)'",
"'(?<!/)modules.php\?name=Encyclopedia&file=index'",
"'(?<!/)modules.php\?name=Encyclopedia&file=index'",
Code:
"dic\\1all\\2.html",
"dic\\1all\\2.html",
"term\\1-\\2.html",
"term\\1-\\2.html",
"term\\1.html",
"term\\1.html",
"dic\\1.html",
"dic\\1.html",
"encyclopedia.html",
"encyclopedia.html",
someone can help me?
thanks