You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 50 guest(s) and 0 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - GoogleTap Mod-Rewrite [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Sun Aug 24, 2003 12:21 am Reply with quoteBack to top

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&amp;file=comments&amp;op=showreply&amp;tid=([0-9]*)&amp;sid=([0-9]*)&amp;pid=([0-9]*)&amp;mode=([a-zA-Z0-9+]*)&amp;order=([0-9]*)&amp;thold=([/:|\s\-\'{}().&_0-9+=]*)'",
"'(?<!/)gate.html\?name=News&amp;file=categories&amp;op=newindex&amp;catid=([0-9]*)&amp;pagenum=([0-9]*)'",
"'(?<!/)gate.html\?name=News&amp;file=categories&amp;op=newindex&amp;catid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=categories&op=newindex&catid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&amp;file=article&amp;op=newindex&amp;catid=([0-9]*)&amp;pagenum=([0-9]*)'",
"'(?<!/)gate.html\?name=News&amp;file=article&amp;op=newindex&amp;catid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&amp;op=newindex&amp;catid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&amp;file=article&amp;sid=([0-9]*)&amp;mode=([a-zA-Z0-9+]*)&amp;order=([0-9]*)&amp;thold=([/:|\s\-\'{}().&_0-9+=]*)'",
"'(?<!/)gate.html\?name=News&amp;file=article&amp;sid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&amp;new_topic=([0-9]*)&amp;pagenum=([0-9]*)'",
"'(?<!/)gate.html\?name=News&amp;new_topic=([0-9]*)'",
"'(?<!/)gate.html\?name=News&new_topic=([0-9]*)'",
"'(?<!/)gate.html\?name=News&amp;file=print&amp;sid=([0-9]*)'",
"'(?<!/)gate.html\?name=News&amp;pagenum=([0-9]*)'",
"'(?<!/)gate.html\?name=News&amp;file=index'",
"'(?<!/)gate.html\?name=News&file=index'",
"'(?<!/)gate.html\?name=Encyclopedia&amp;op=list_terms&amp;eid=([0-9]*)&amp;ltr=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&op=list_terms&eid=([0-9]*)&ltr=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&amp;op=content&amp;tid=([0-9]*)&amp;page=([0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&op=content&tid=([0-9]*)&page=([0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&amp;op=content&amp;tid=([0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&op=content&tid=([0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&amp;op=list_content&amp;eid=([0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&op=list_content&eid=([0-9]*)'",
"'(?<!/)gate.html\?name=Encyclopedia&amp;file=index'",
"'(?<!/)gate.html\?name=Encyclopedia&file=index'",
"'(?<!/)gate.html\?name=Content&amp;pa=showpage&amp;pid=([0-9]*)'",
"'(?<!/)gate.html\?name=Content&amp;pa=list_pages_categories&amp;cid=([0-9]*)'",
"'(?<!/)gate.html\?name=FAQ&file=index'",
"'(?<!/)gate.html\?name=FAQ&amp;myfaq=([a-zA-Z0-9+]*)&amp;id_cat=([0-9]*)&amp;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&amp;ratenum=(10|25|50)&amp;ratetype=(num|percent)'",
"'(?<!/)gate.html\?name=Downloads&d_op=MostPopular'",
"'(?<!/)popdowns.html&amp;ratenum=(10|25|50)&amp;ratetype=(num|percent)'",
"'(?<!/)gate.html\?name=Downloads&d_op=NewDownloads&amp;newdownloadshowdays=([0-9]*)'",
"'(?<!/)gate.html\?name=Downloads&d_op=NewDownloadsDate&amp;selectdate=([0-9]*)'",
"'(?<!/)gate.html\?name=Downloads&d_op=NewDownloads'",
"'(?<!/)gate.html\?name=Downloads&d_op=getit&amp;lid=([0-9]*)'",
"'(?<!/)gate.html\?name=Downloads&d_op=viewdownload&amp;cid=([0-9]*)&amp;orderby=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Downloads&d_op=viewdownload&amp;cid=([0-9]*)&amp;min=([0-9]*)&amp;orderby=([a-zA-Z0-9]*)&amp;show=([0-9]*)'",
"'(?<!/)gate.html\?name=Downloads&d_op=viewdownload&amp;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&amp;id=([0-9]*)'",
"'(?<!/)gate.html\?name=Reviews&rop=write_review'",
"'(?<!/)gate.html\?name=Reviews&rop=postcomment&amp;id=([0-9]*)&amp;title=([a-zA-Z0-9+]*)'",
"'(?<!/)gate.html\?name=Reviews&rop=mod_review&amp;id=([0-9]*)'",
"'(?<!/)gate.html\?name=Reviews&rop=del_review&amp;id_del=([0-9]*)'",
"'(?<!/)gate.html\?name=Reviews&rop=del_comment&amp;cid=([0-9]*)&amp;id=([0-9]*)'",
"'(?<!/)gate.html\?name=Reviews&rop=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Reviews'",
"'(?<!/)gate.html\?name=Sections&op=viewarticle&amp;artid=([0-9]*)&amp;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&amp;artid=([0-9]*)'",
"'(?<!/)gate.html\?name=Sections&op=listarticles&amp;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&amp;topic=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&amp;pollID=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&op=results&pollID=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&amp;op=results&amp;pollID=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&amp;file=comments&amp;op=Reply&pid=([0-9]*)&pollID=([0-9]*)&mode=([a-zA-Z0-9+]*)&order=([0-9]*)&thold=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&amp;file=comments&amp;op=Reply&amp;pid=([0-9]*)&amp;pollID=([0-9]*)&amp;mode=([a-zA-Z0-9+]*)&amp;order=([0-9]*)&amp;thold=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&amp;file=comments&amp;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&amp;file=comments&amp;pollID=([0-9]*)&amp;pid=([0-9]*)'",
"'(?<!/)gate.html\?name=Surveys&amp;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]*)&amp;order=([a-zA-Z0-9]*)&amp;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+=]*)&amp;u=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&amp;file=profile&amp;mode=([a-zA-Z0-9+=]*)&amp;u=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewforum&f=([0-9]*)&amp;topicdays=([0-9]*)&amp;start=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewforum&f=([0-9]*)&amp;mark=topics'",
"'(?<!/)gate.html\?name=Forums&file=viewforum&f=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&amp;file=viewforum&amp;f=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&amp;view=previous'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&amp;view=next'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&amp;postdays=([0-9]*)&amp;postorder=([a-zA-Z]*)&amp;start=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&amp;start=([0-9]*)&amp;postdays=([0-9]*)&amp;postorder=([a-zA-Z]*)&amp;highlight=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&amp;start=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&amp;watch=topic&amp;start=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&amp;unwatch=topic&amp;start=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)&amp;highlight=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&t=([0-9]*)'",
"'(?<!/)gate.html\?name=Forums&file=viewtopic&p=([0-9]*)&amp;highlight=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Forums&amp;file=viewtopic&amp;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&amp;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&amp;newlinkshowdays=([0-9]*)'",
"'(?<!/)gate.html\?name=Web_Links&l_op=NewLinksDate&amp;selectdate=([0-9]*)'",
"'(?<!/)gate.html\?name=Web_Links&l_op=NewLinks'",
"'(?<!/)gate.html\?name=Web_Links&l_op=visit&amp;lid=([0-9]*)'",
"'(?<!/)gate.html\?name=Web_Links&l_op=viewlink&amp;cid=([0-9]*)&amp;orderby=([a-zA-Z0-9]*)'",
"'(?<!/)gate.html\?name=Web_Links&l_op=viewlink&amp;cid=([0-9]*)&amp;min=([0-9]*)&amp;orderby=([a-zA-Z0-9]*)&amp;show=([0-9]*)'",
"'(?<!/)gate.html\?name=Web_Links&l_op=viewlink&amp;cid=([0-9]*)'",
"'(?<!/)gate.html\?name=Your_Account&op=userinfo&username=([/:|\s\-\'{}().&_a-zA-Z0-9+=]*)'",
"'(?<!/)gate.html\?name=Your_Account&amp;op=userinfo&username=([/:|\s\-\'{}().&_a-zA-Z0-9+=]*)'",
"'(?<!/)gate.html\?name=Your_Account&amp;op=userinfo&amp;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.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Daniel-cmw
Site Admin
Site Admin


Joined: Mar 02, 2003
Posts: 1662

Location: The UK!

PostPosted: Sun Aug 24, 2003 1:54 am Reply with quoteBack to top

Does your host support mod_rewrite?

_________________
Read Me
Find all posts by Daniel-cmwView user's profileSend private message
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Sun Aug 24, 2003 3:34 am Reply with quoteBack to top

post your .htaccess file too
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Aug 24, 2003 4:48 am Reply with quoteBack to top

Yes you need to reverse the translations in the .htaccess file.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Sun Aug 24, 2003 9:33 am Reply with quoteBack to top

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&ltr=$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.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Sun Aug 24, 2003 9:35 am Reply with quoteBack to top

Any idea why I was getting the 500 error too?

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Aug 24, 2003 10:04 am Reply with quoteBack to top

You may not have mod_rewrite compiled. You need to check with your host.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Sun Aug 24, 2003 10:46 am Reply with quoteBack to top

So nothing in the code is wrong right?
Right now, I am using one of these mod_rewrite scripts and they are working just fine.

Here are the examples.

http://www.chicagobase.com/topics.html

http://www.chicagobase.com/downloads.html

http://www.chicagobase.com/surveys.html

One more question, if my mod_rewrite is not compiled, what exactly should I tell my host?

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sun Aug 24, 2003 11:58 am Reply with quoteBack to top

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]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Mon Aug 25, 2003 9:43 pm Reply with quoteBack to top

Ok, after spending hours banging my head to the wall..... I finally won the war with .htacess file..Here are few examples.

http://www.chicagobase.com/friendfinder.html
http://www.chicagobase.com/share.html
http://www.chicagobase.com/account.html
http://www.chicagobase.com/phtogallery.html

NOW:
When I redone my header.php, this is what it's doing:
When someone clicks on the menu, any link, it looks like this:

http://www.chicagobase.com/journals.html>Journal</a><br><strong><big>·</big></strong> <a%20href=

And few links are missing from the menu....
Any ideas?

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Mon Aug 25, 2003 10:00 pm Reply with quoteBack to top

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 Very Happy
Me is excited!

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Mesum
Support Staff
Support Staff


Joined: Mar 11, 2003
Posts: 842

Location: Chicago

PostPosted: Mon Aug 25, 2003 10:51 pm Reply with quoteBack to top

Mission Status:
Done! Very Happy

_________________
Only FREE Dating site for Desis.
Find all posts by MesumView user's profileSend private messageVisit poster's websiteAIM AddressYahoo MessengerMSN Messenger
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Tue Aug 26, 2003 7:16 am Reply with quoteBack to top

Sweet... post your success. Smile

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
scabbed
Nuke Cadet
Nuke Cadet


Joined: Sep 15, 2003
Posts: 7


PostPosted: Mon Sep 15, 2003 12:58 pm Reply with quoteBack to top

hello, first sorry for my english, i'm french Laughing

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]*)&ltr=([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