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, 64 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 - The Complete Forums Tap [ ]
 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
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Thu Aug 21, 2003 10:24 am Reply with quoteBack to top

Hi there,
I also tried this. All of it worked, except the bit at the end about changing modules.php?name=Forums into forums.html in the main menu. When I did what you said, it changed to forum-.html, and also I use the navtap and the Your Topics link changed from forum-topics.html to forums.html.

Any ideas to help me out??
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
Audioslaved
Elite Nuker
Elite Nuker


Joined: Jun 14, 2003
Posts: 420

Location: Hawaii and The Fan Forum

PostPosted: Fri Aug 22, 2003 2:52 pm Reply with quoteBack to top

Badger,
I would like you to retry doing it, you should not get a forum-.html, it should just be forums.html. To do it correctly, simply paste what I said to add at the very bottom of your forum entries, in both the header.php and the .htaccess. It sounds like the statement is not at the bottom of the rewrite statements for the forum re-writes. Go ahead and put your forum code up here, and we can see what is going on.

_________________
GT-NExtGEn: The future of GoogleTap
http://gt-nextgen.com/

The Audioslave Fan Forum
http://www.audioslaved.com
Find all posts by AudioslavedView user's profileSend private messageSend e-mailVisit poster's website
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Sat Aug 23, 2003 11:26 am Reply with quoteBack to top

HI,
I tried doing it again, but it still isn't happy. I don't want to leave the faulty code in at the moment on the site, as it is in production, but I'll post what I would put in below:
.htaccess
Code:
# $Author: zx $
# $Date: 2003/08/17 14:03:21 $

# 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
Rewritebase /

#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 article.html$1&mode=$2&order=$3&thold=$4
RewriteRule ^article([1-9][0-9]*).* article.html$1
RewriteRule ^article-topic-([0-9]*).html article-topic-.html$1
RewriteRule ^allnews.html modules.php?name=News&file=allindex

#Content
RewriteRule ^contentid-([1-9][0-9]*).html contentid-.html$1
RewriteRule ^content-cat-([1-9][0-9]*).html content-cat-.html$1

#FAQ
RewriteRule ^faq.html faq.html
RewriteRule ^faq-([0-9]*)-([a-zA-Z0-9+]*).html faq.html&myfaq=yes&id_cat=$1&categories=$2

#Forums
RewriteRule ^forumx([0-9]+)-([0-9]+)-([0-9]+).html modules.php?name=Forums&file=viewforum&f=$1&topicdays=$2&start=$3
RewriteRule ^markread([0-9]*).html modules.php?name=Forums&file=viewforum&f=$1&mark=topics
RewriteRule ^forum([1-9][0-9]*).* modules.php?name=Forums&file=viewforum&f=$1
RewriteRule ^postlite([0-9]*)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html modules.php?name=Forums&file=viewtopic&t=$1&highlight=$2
RewriteRule ^postx([0-9]+)-([0-9]+)-([0-9]+).html modules.php?name=Forums&file=viewtopic&t=$1&start=$2&postdays=$3&postorder=asc&highlight=
RewriteRule ^postxf([0-9]+)-([0-9]+)-([0-9]+).html modules.php?name=Forums&file=viewtopic&t=$1&postdays=$2&postorder=asc&start=$3
RewriteRule ^forums.html modules.php?name=Forums
RewriteRule ^posts([0-9]*)-([0-9]*).html  modules.php?name=Forums&file=viewtopic&t=$1&start=$2
RewriteRule ^postsf([0-9]*)-([a-zA-Z0-9]*).html modules.php?name=Forums&file=viewtopic&t=$1&view=$2
RewriteRule ^topic([1-9][0-9]*)-([a-zA-Z0-9]*).html modules.php?name=Forums&file=viewtopic&t=$1&$2=topic&start=0
RewriteRule ^post(p|t)([1-9][0-9]*).* modules.php?name=Forums&file=viewtopic&$1=$2
RewriteRule ^register-coppa-([a-zA-Z0-9_]*).html modules.php?name=Forums&file=profile&mode=register&agreed=true&coppa=$1
RewriteRule ^register-([a-zA-Z0-9_]*).html modules.php?name=Forums&file=profile&mode=register&agreed=$1
RewriteRule ^poster([a-zA-Z0-9_]*)-([0-9_&]*)_([a-zA-Z0-9_&=[:punct:]\.\;]*).html modules.php?name=Forums&file=modcp&mode=$1&p=$2&t=$3
RewriteRule ^modcp([0-9]*)-([a-zA-Z0-9]*).html modules.php?name=Forums&file=modcp&t=$1&amp;mode=$2
RewriteRule ^forums-([a-zA-Z0-9_]*)-([a-zA-Z0-9_]*)-([0-9]*)-([1-9][0-9]*).html modules.php?name=Forums&file=$1&mode=$2&t=$3&popup=$4
RewriteRule ^forums-([a-zA-Z0-9_]*)-([a-zA-Z0-9_]*)-(p|t|f|u|popup)-([0-9]*).html modules.php?name=Forums&file=$1&mode=$2&$3=$4
RewriteRule ^forums-([a-zA-Z0-9_]*)-([a-zA-Z0-9_]*).html modules.php?name=Forums&file=$1&mode=$2
RewriteRule ^forums-([a-zA-Z0-9_]*)-([a-zA-Z0-9_]*)-([a-zA-Z0-9_+]*).html modules.php\?name=Forums&file=$1&$2=$3&showresults=topics
RewriteRule ^forums-([a-zA-Z0-9_]*)-([a-zA-Z0-9_]*)-([a-zA-Z0-9_]*).html modules.php\?name=Forums&file=$1&$2=$3
RewriteRule ^forums.html modules.php?name=Forums&file=index
RewriteRule ^forum-([a-zA-Z0-9_]*).html modules.php?name=Forums&file=$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 archive.html
RewriteRule ^archive-([0-9]*)-([0-9]*)-([a-zA-Z]*).* archive.html&sa=show_month&year=$1&month=$2&month_l=$3

#Reviews
RewriteRule ^reviews.html reviews.html
RewriteRule ^reviews-([0-9]*).html reviews.html&rop=showcontent&id=$1
RewriteRule ^reviews-new.html reviews.html&rop=write_review
RewriteRule ^reviews-sortby-([a-zA-Z0-9]*).html reviews.html&rop=$1
RewriteRule ^reviews-comment-([0-9]*)-([[:punct:]a-zA-Z0-9]*).* reviews.html&rop=postcomment&id=$1&title=$2
RewriteRule ^reviews-([0-9]*)-delete.html reviews.html&rop=del_review&id_del=$1
RewriteRule ^reviews-([0-9]*)-edit.html reviews.html&rop=mod_review&id=$1

#Sections
RewriteRule ^section-(printpage|viewarticle)-([0-9]*).html sections.html&op=$1&artid=$2
RewriteRule ^section-([0-9]*).html sections.html&op=listarticles&secid=$1
RewriteRule ^sections.html sections.html


#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 submit.html

#Search
#RewriteRule ^search.html modules.php?name=Search

#Top10
RewriteRule ^top-([[:print:]]*).html top.html&zx=$1
RewriteRule ^top.html top.html

#Topics
RewriteRule ^topics.html topics.html

#Your Account
RewriteRule ^userinfo-([a-zA-Z0-9_-]*).html userinfo-.html$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 links.html&l_op=visit&lid=$1
RewriteRule ^links-([0-9]*)-([0-9]*)-([0-9]*).html links.html&file=index&l_op=viewlink&cid=$1&min=$2&orderby=titleA&show=$3
RewriteRule ^link-([0-9]*).html links.html&l_op=viewlink&cid=$1
RewriteRule ^links.html links.html

# $Log: htaccess.GT,v $
# Revision 1.2  2003/08/17 14:03:21  zx
# Added for forums poll and category
#
# Revision 1.1  2003/07/30 01:12:53  zx
# Master GoogleTap File -- Use if you desire a GoogleTap Universe
#
#

Header.php
Code:

# $Author: zx $
# $Date: 2003/08/17 14:03:04 $

/************************************************************************/
/* PHP-NUKE: Advanced Content Management System                         */
/* ============================================                         */
/*                                                                      */
/* Copyright (c) 2002 by Francisco Burzi                                */
/* http://phpnuke.org                                                   */
/*                                                                      */
/* This program is free software. You can redistribute it and/or modify */
/* it under the terms of the GNU General Public License as published by */
/* the Free Software Foundation; either version 2 of the License.       */
/************************************************************************/

if (eregi("header.php",$_SERVER['PHP_SELF'])) {
    Header("Location: index.php");
    die();
}

ob_start();

function replace_for_mod_rewrite(&$s) {
$urlin = array(
"'(?<!/)modules.php\?name=News&amp;file=article&amp;sid=([0-9]*)&amp;mode=([a-z]*)&amp;order=([0-9]*)&amp;thold=([0-9]*)'",
"'(?<!/)modules.php\?name=News&amp;file=article&amp;sid=([0-9]*)'",
"'(?<!/)modules.php\?name=News&file=article&sid=([0-9]*)'",
"'(?<!/)modules.php\?name=News&amp;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&amp;lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&amp;cid=([0-9]*)&amp;min=([0-9]*)&amp;orderby=titleA&amp;show=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownload&amp;cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Downloads&d_op=viewdownloaddetails&amp;lid=([0-9]*)&amp;ttitle=([/:\-\'{}()._&a-zA-Z0-9+= ]*)'",
"'(?<!/)modules.php\?name=(Downloads\")'",
"'(?<!/)modules.php\?name=Reviews&rop=showcontent&amp;id=([0-9]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=write_review'",
"'(?<!/)modules.php\?name=Reviews&rop=postcomment&amp;id=([0-9]*)&amp;title=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=mod_review&amp;id=([0-9]*)'",
"'(?<!/)modules.php\?name=Reviews&rop=del_review&amp;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&amp;myfaq=yes&amp;id_cat=([0-9]*)&amp;categories=([a-zA-Z0-9+]*)'",
"'(?<!/)modules.php\?name=Content&amp;pa=showpage&amp;pid=([0-9]*)'",
"'(?<!/)modules.php\?name=Content&amp;pa=list_pages_categories&amp;cid=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]+)&amp;topicdays=([0-9]+)&amp;start=([0-9]+)'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)&amp;mark=topics'",
"'(?<!/)modules.php\?name=Forums&file=viewforum&f=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&amp;highlight=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]+)&amp;start=([0-9]+)&amp;postdays=([0-9]+)&amp;postorder=asc&amp;highlight='",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]+)&amp;postdays=([0-9]+)&amp;postorder=asc&amp;start=([0-9]+)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&amp;start=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&amp;view=([a-zA-Z0-9_]*)'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&t=([0-9]*)&amp;([a-zA-Z0-9]*)=topic&amp;start=0'",
"'(?<!/)modules.php\?name=Forums&file=viewtopic&(p|t)=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=profile&mode=register&amp;agreed=true&amp;coppa=([a-zA-Z0-9_]*)'",
"'(?<!/)modules.php\?name=Forums&file=profile&mode=register&amp;agreed=([a-zA-Z0-9_]*)'",
"'(?<!/)modules.php\?name=Forums&file=modcp&mode=([a-zA-Z0-9_]*)&amp;p=([0-9_&]*)&amp;t=([a-zA-Z0-9_&=\.\;]*)'",
"'(?<!/)modules.php\?name=Forums&file=modcp&t=([0-9]*)&amp;mode=([a-zA-Z0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=([a-zA-Z0-9_]*)&mode=([a-zA-Z0-9_]*)&amp;t=([0-9]*)&popup=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=([a-zA-Z0-9_]*)&mode=([a-zA-Z0-9_]*)&(p|t|f|u|popup)=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=([a-zA-Z0-9_]*)&mode=([a-zA-Z0-9_]*)&amp;(p|t|f|u|popup)=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=([a-zA-Z0-9_]*)&amp;mode=([a-zA-Z0-9_]*)&(p|t|f|u|popup)=([0-9]*)'",
"'(?<!/)modules.php\?name=Forums&file=([a-zA-Z0-9_]*)&mode=([a-zA-Z0-9_]*)'",
"'(?<!/)modules.php\?name=Forums&file=([a-zA-Z0-9_]*)&([a-zA-Z0-9_]*)=([a-zA-Z0-9_+]*)&amp;showresults=topics'",
"'(?<!/)modules.php\?name=Forums&file=([a-zA-Z0-9_]*)&([a-zA-Z0-9_]*)=([a-zA-Z0-9_]*)'",
"'(?<!/)modules.php\?name=Forums&file=index'",
"'(?<!/)modules.php\?name=Forums&file=([a-zA-Z0-9_]*)'",
"'(?<!/)modules.php\?name=Forums&file=([a-zA-Z0-9_]*)'",
"'(?<!/)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&amp;op=userinfo&amp;username=([a-zA-Z0-9_-]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=NewLinksDate&amp;selectdate=([0-9]+)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=(AddLink|MostPopular|NewLinks|RandomLink|TopRated)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=ratelink&amp;lid=([0-9]*)&amp;ttitle=([/:\-\'(){}.&=_a-zA-Z0-9 ]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=visit&amp;lid=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&amp;cid=([0-9]*)&amp;min=([0-9]*)&amp;orderby=titleA&amp;show=([0-9]*)'",
"'(?<!/)modules.php\?name=Web_Links&l_op=viewlink&amp;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",
"contentid-\\1.html",
"content-cat-\\1.html",
"forumx\\1-\\2-\\3.html",
"markread\\1.html",
"forum\\1.html",
"postlite\\1-\\2.html",
"postx\\1-\\2-\\3.html",
"postxf\\1-\\2-\\3.html",
"posts\\1-\\2.html",
"postsf\\1-\\2.html",
"topic\\1-\\2.html",
"post\\1\\2.html",
"register-coppa-\\1.html",
"register-\\1.html",
"poster\\1-\\2_\\3.html",
"modcp\\1-\\2.html",
"forums-\\1-\\2-\\3-\\4.html",
"forums-\\1-\\2-\\3-\\4.html",
"forums-\\1-\\2-\\3-\\4.html",
"forums-\\1-\\2-\\3-\\4.html",
"forums-\\1-\\2.html",
"forums-\\1-\\2-\\3.html",
"forums-\\1-\\2-\\3.html",
"forums.html",
"forum-\\1.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;
}


require_once("mainfile.php");

##################################################
# Include some common header for HTML generation #
##################################################

$header = 1;

function head() {
    global $slogan, $sitename, $banners, $nukeurl, $Version_Num, $artpage, $topic, $hlpfile, $user, $hr, $theme, $cookie, $bgcolor1, $bgcolor2, $bgcolor3, $bgcolor4, $textcolor1, $textcolor2, $forumpage, $adminpage, $userpage, $pagetitle;
    $ThemeSel = get_theme();
    include("themes/$ThemeSel/theme.php");
    echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">\n";
    echo "<html>\n";
    echo "<head>\n";
    echo "<title>$sitename $pagetitle</title>\n";

    include("includes/meta.php");
    include("includes/javascript.php");

    if (file_exists("themes/$ThemeSel/images/favicon.ico")) {
        echo "<link REL=\"shortcut icon\" HREF=\"themes/$ThemeSel/images/favicon.ico\" TYPE=\"image/x-icon\">\n";
    }

    echo "<LINK REL=\"StyleSheet\" HREF=\"themes/$ThemeSel/style/style.css\" TYPE=\"text/css\">\n\n\n";
    include("includes/my_header.php");
    echo "<SCRIPT LANGUAGE=\"JavaScript\">\n";
    echo "<!--\n";
    echo "function FrameBuster(){\n";
    echo "if (top !=self)\n";
    echo "top.location=self.location;\n";
    echo "}\n";
    echo "// -->\n";
    echo "</script>\n";
    echo "\n\n\n</head>\n\n";
    themeheader();
}

online();
head();
include("includes/counter.php");
global $home;
if ($home == 1) {
    message_box();
    blocks(Center);
}

# $Log: header.GT,v $
# Revision 1.2  2003/08/17 14:03:04  zx
# Added for categories and search GT
#
# Revision 1.1  2003/07/30 01:12:53  zx
# Master GoogleTap File -- Use if you desire a GoogleTap Universe
#


Whaddaya think??

Badger
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Sat Aug 23, 2003 11:33 am Reply with quoteBack to top

forget it. It's working now (missed something out somehow). THanks for the great fix!!

Has anyone tried tapping the encyclopedia yet??

Badger

_________________
The Audio Recording Centre
http://www.audio-recording.co.uk
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
hamesh
Support Mod
Support Mod


Joined: Feb 13, 2003
Posts: 170

Location: Canada

PostPosted: Sat Sep 06, 2003 8:50 pm Reply with quoteBack to top

Audioslaved wrote:
Hey all,
Its time for 100% google tap forums. This transform your forum into a fully .html tapped forum...


Great work Bill. Here are a few other taps you missed for the forums.

Add to .htaccess in #Forums section:

RewriteRule ^forums-search-unanswered.html modules.php?name=Forums&file=search&search_id=unanswered
RewriteRule ^forums-search-newposts.html modules.php?name=Forums&file=search&search_id=newposts
RewriteRule ^forums-search-myposts.html modules.php?name=Forums&file=search&search_id=egosearch
RewriteRule ^forums-search.html modules.php?name=Forums&file=search
RewriteRule ^forums-faq.html modules.php?name=Forums&file=faq
RewriteRule ^forums-groups.html modules.php?name=Forums&file=groupcp

Then in header.php in function replace_for_mod_rewrite:

Before line:

Quote:
"'(?<!/)modules.php\?name=Forums&file=index'",


Add:

"'(?<!/)modules.php\?name=Forums&file=search&search_id=unanswered'",
"'(?<!/)modules.php\?name=Forums&file=search&search_id=egosearch'",
"'(?<!/)modules.php\?name=Forums&file=search&search_id=newposts'",
"'(?<!/)modules.php\?name=Forums&file=search'",
"'(?<!/)modules.php\?name=Forums&file=faq'",
"'(?<!/)modules.php\?name=Forums&file=groupcp'",

Before line:

Quote:
"forums.html",


Add:

"forums-search-unanswered.html",
"forums-search-myposts.html",
"forums-search-newposts.html",
"forums-search.html",
"forums-faq.html",
"forums-groups.html",

Also, here's a little observation for anyone trying to create their own custom taps for other modules. The URL rewrite has to match the link in the *.php file where it is generated. For example, in the Forums links the original URL you see when you hold the mouse over the link might be:

modules.php?name=Some_Module&file=index

But in the souce of the *.php file in that module's directory, the link may actually be:

modules.php?name=Some_Module&amp;file=index

Keep that in mind when creating your own taps. I found that when my taps weren't working, that was almost always the problem...

Cheers!

_________________
Image
Find all posts by hameshView user's profileSend private messageSend e-mailVisit poster's websiteMSN MessengerICQ Number
Imago
Captain
Captain


Joined: Jan 17, 2003
Posts: 629

Location: Europe

PostPosted: Sun Sep 07, 2003 1:34 am Reply with quoteBack to top

I've just found Google indexing this file

http://www.orientalgate.org/gate.html?name=Forums&file=rating&p=2833

Which reminds me of one thing: What do we want from the mod_rewrite - Google indexing our content, or short and beatifully designed URLs?

I think, for Google sake, we need to googlify only forums and forum topics; googlifying the individual posts amounts to increasing 10 to 20 times the forum traffic depending on how many posts are on a single page.

For example here, at NC, we have 21 urls for one and the same page

http://www.nukecops.com/postx7165-0-0.html
http://www.nukecops.com/postt7165.html
http://www.nukecops.com/posts7165-0.html
http://www.nukecops.com/postlite7165-.html
http://www.nukecops.com/postp36475.html
http://www.nukecops.com/postp36495.html
http://www.nukecops.com/postp36509.html
http://www.nukecops.com/postp36658.html
http://www.nukecops.com/postp36669.html
http://www.nukecops.com/postp36754.html
http://www.nukecops.com/postp36809.html
http://www.nukecops.com/postp36958.html
http://www.nukecops.com/postp37925.html
http://www.nukecops.com/postp37950.html
http://www.nukecops.com/postp37979.html
http://www.nukecops.com/postp38001.html
http://www.nukecops.com/postp38239.html
http://www.nukecops.com/postp38689.html
http://www.nukecops.com/postp38781.html
and the two not working prev and next topic
http://www.nukecops.com/postt7166.html&view=previous
http://www.nukecops.com/postt7164.html&view=next

If we totally googlify the forum, we will have another 10 to 20 variable urls for the same page.

Think about the traffic. Do you really not care about the money you are paying for your 1, 2 or 5 Gigs of traffic. If you have 10,000 posts on your forum, googlebot will make about 15000 pageviews. Each page is about 100K (here, it is 170K), which makes up to 1500 MB traffic for one indexing only. And because Google likes these short urls, it visits them at least four times a month, that is, 6 GB of traffic for 10,000 posts.

And we have many other modules that generate the same amount of fake traffic.
Find all posts by ImagoView user's profileSend private messageVisit poster's website
hamesh
Support Mod
Support Mod


Joined: Feb 13, 2003
Posts: 170

Location: Canada

PostPosted: Sun Sep 07, 2003 11:54 am Reply with quoteBack to top

You have a good point there. It really depends on the purpose of Google Tap. From the name, the focus from day one was to increase the chance of Google indexing your site better. A bonus is that it also creates nice short URLs.

Bandwidth is not an issue for my site, however it is an issue for a great many people. Going forward, the developers might consider making two versions of Google Tap:

1) Google Tap - One that only has the bare minimum of URL rewrites to allow for better indexing by Google (news, articles, forums, and maybe downloads and link - that's all).
2) Short URLs - The short URLs one would attempt to rewrite ALL URLs to short, pretty ones (where possible).

It could probably be done with only one but have it default to Google Tap with the option to enable Short URLs, as definded above.

_________________
Image
Find all posts by hameshView user's profileSend private messageSend e-mailVisit poster's websiteMSN MessengerICQ Number
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Mon Sep 08, 2003 4:04 pm Reply with quoteBack to top

Bandwidth is not an issue here too. Now that the server hopefully is repaired with the proper kernel compile, I need to get back to GT and MT. MT is scheduled for the next alpha release, and this thread will hopefully fill in the gaps for the GT.

_________________
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
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Wed Sep 10, 2003 9:14 am Reply with quoteBack to top

MT?

_________________
The Audio Recording Centre
http://www.audio-recording.co.uk
Find all posts by badgerView user's profileSend private messageSend e-mailVisit poster's websiteMSN Messenger
dirtbag
Lieutenant
Lieutenant


Joined: May 08, 2003
Posts: 159


PostPosted: Wed Sep 10, 2003 10:51 pm Reply with quoteBack to top

yeah what is MT?

_________________
Rick Estrada
http://www.subfighter.com
Online Jiu Jitsu Techniques MMA News
Find all posts by dirtbagView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Sat Sep 13, 2003 2:28 pm Reply with quoteBack to top

Hi'ya, I've been relaxing this week -- recovering -- from the server issues over the past month. Today I'm getting back into things full swing and have almost 400 threads to read since Wednesday.

MT = Mysql-Tap

Its the new software I'm writing for phpnuke admins to have a phpadmin interface to mysql.

_________________
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
badger
Sergeant
Sergeant


Joined: Apr 02, 2003
Posts: 113

Location: Scotland

PostPosted: Sat Sep 13, 2003 7:29 pm Reply with quoteBack to top

MT - sounds good. Is this instead of, or as well as the phpbbmyadmin?? I take it it's gonna be an admin module??

_________________
The Audio Recording Centre
http://www.audio-recording.co.uk
Find all posts by badger