Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard
Author Message
hinksta
Worker
Worker



Joined: Dec 23, 2005
Posts: 226
Location: UK

PostPosted: Tue Feb 14, 2006 4:50 pm Reply with quote

installed 040

if i click any short name link i get a 404 error

if i goto forums long name link i get

Parse error: parse error, unexpected $ in /homepages/xx/xxxxxxx/htdocs/includes/sessions.php on line 914

how do you get the gt admin?
 
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Tue Feb 14, 2006 5:16 pm Reply with quote

That error suggests you didnt make the sessions.php file edits correctly.
You might want to recheck that.
 
View user's profile Send private message Send e-mail
hinksta







PostPosted: Tue Feb 14, 2006 5:41 pm Reply with quote

I've got this
Code:
and put it back for the modules.php

       $dummy = 1;
   }
   else if ((ereg("memberlist", $url)) && (!ereg("highlight=memberlist", $url)))
   {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace("memberlist.php", "modules.php?name=Members_List&file=index", $url); //  and put it back for the modules.php
   } else {
           $url = str_replace("?", "&", $url); // As we are already in nuke, change the ? to &
           $url = str_replace(".php", "", $url);
           $url = "modules.php?name=Forums&file=".$url; //Change to Nuke format
   }

   if ($userdata['user_level'] > 1) {
   if ( !empty($SID) && !eregi('sid=', $url) && !areyouabot()  )
        {
            if ( !empty($SID) && !eregi('sid=', $url) )        {
                $url .= ( ( strpos($url, '?') != false ) ?  ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
            }
        }
        return($url);
}
function areyouabot()
{
global $HTTP_SERVER_VARS;
        $RobotsList = array (
        "antibot",
        "appie",
        "architext",
        "bjaaland",
        "digout4u",
        "echo",
        "fast-webcrawler",
        "ferret",
        "googlebot",
        "gulliver",
        "harvest",
        "htdig",
        "ia_archiver",
        "jeeves",
 
Guardian2003







PostPosted: Tue Feb 14, 2006 6:06 pm Reply with quote

As I said, you need to check the edit you made as it was obviously not a problem before then.
If you are using RN202 I have one already modified if that is any help.
 
hinksta







PostPosted: Tue Feb 14, 2006 6:07 pm Reply with quote

Guardian2003 wrote:

If you are using RN202 I have one already modified if that is any help.


Yes please
 
Guardian2003







PostPosted: Tue Feb 14, 2006 6:31 pm Reply with quote

Hmm actually, the original core file will work for you. You dont need that function areyouabout so you can simply use the existing core file as I have done.
However if you wanted to use it, it should be;
Code:


 if ($userdata['user_level'] > 1) {
   if ( !empty($SID) && !eregi('sid=', $url)&& !areyouabout() )
   {
 if ( !empty($SID) && !eregi('sid=', $url) )   {
   $url .= ( ( strpos($url, '?') != false ) ?  ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}
}
}
return($url);
}
function areyouabot()
etc etc
 
hinksta







PostPosted: Tue Feb 14, 2006 6:39 pm Reply with quote

Going back to the RN202 sessions.php fix's the forum error but I still have the 404 problem
This is a fresh install of GTNG
 
hinksta







PostPosted: Tue Feb 14, 2006 6:43 pm Reply with quote

one thing i was unshure about but did use, was Main Menu Web Installer for Nuke 7.0


Last edited by hinksta on Tue Feb 14, 2006 6:45 pm; edited 1 time in total 
hinksta







PostPosted: Tue Feb 14, 2006 6:44 pm Reply with quote

ooops (double post)
 
Guardian2003







PostPosted: Tue Feb 14, 2006 7:01 pm Reply with quote

Hmm, you mention getting 404 errors on short (tapped) url's.
I have not employed the modules.php edit or DB alteration myself as I dont wanted to be messing with core tables due to this particular sit being a test bed for RN as well as a production site so I am going to guess this is the problem.
Is it only happening on main menu links?
What happens with [ Only registered users can see links on this board! Get registered or login! ] ?

I may not respond now for a while as I need to grab 3 hours sleep before going to work.
 
hinksta







PostPosted: Tue Feb 14, 2006 7:14 pm Reply with quote

Quote:
Is it only happening on main menu links?

Shocked it's my links and article topic icons
not the main menu

Quote:
What happens with [ Only registered users can see links on this board! Get registered or login! ] ?

404 error

night night
 
sting
Involved
Involved



Joined: Sep 23, 2003
Posts: 456
Location: Somewhere out there...

PostPosted: Tue Feb 14, 2006 7:42 pm Reply with quote

Can you post a link to your site, also your .htaccess file and verify that you have a GT-module for each portion that is having the problem?

-sting

_________________
You see - I told you I wasn't paranoid. They were really out to get me. 
View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
montego
Site Admin



Joined: Aug 29, 2004
Posts: 9457
Location: Arizona

PostPosted: Tue Feb 14, 2006 9:49 pm Reply with quote

Guardian2003 wrote:
Hmm actually, the original core file will work for you. You dont need that function areyouabout so you can simply use the existing core file as I have done.


Just so you know the edit to sessions.php is there to keep the session id from showing up in the URL, which would be a big no-no. I would recommend making the edit to sessions.php (and doing it correctly Wink )

_________________
Where Do YOU Stand?
HTML Newsletter::ShortLinks::Mailer::Downloads and more... 
View user's profile Send private message Visit poster's website
hinksta







PostPosted: Wed Feb 15, 2006 6:05 am Reply with quote

As it was bedtime I made a hasty retreat on the install. I'll give it another go tonight or tomorrow.

My concerns with the install on RN202

Is using Main Menu Web Installer for Nuke 7.0 ok? (Uninstall was as easy as install)
What edits should I do to admin if any?
The correct sessions.php edits gave an error on a different line (could just be the edit was in a different place)
I'm confused about making edits to my core blocks (is this needed, if so how, Should I be using the 040 core blocks?)

Quote:
Can you post a link to your site, also your .htaccess file and verify that you have a GT-module for each portion that is having the problem

I copied the .htaccess from 040 and added it to the end of mine
I did ftp the GoogleTap folder.
I used the block-Sommaire-GT.php from gt-nextgen.com and the block-Old_Articles.php from 040 ( both gave a 404 error)
I dont think Sommaire 404 errors was on all links (mostly mine, feedback was ok)


Last edited by hinksta on Wed May 24, 2006 9:09 am; edited 2 times in total 
hinksta







PostPosted: Wed Feb 15, 2006 6:21 am Reply with quote

Code:
Options All -Indexes

DirectoryIndex index.php index.htm index.html

# -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
<Files .ftaccess>
  deny from all
</Files>

<Files .staccess>
  deny from all
</Files>

# -----------------------------------------------------------------------------------------------------
# Leave this block commented out unless HTTPAuth is NOT available in your NukeSentinel(tm) Admin Panel.
# This code is mainly for use with CGI Authentication and most servers do not require it.
# -----------------------------------------------------------------------------------------------------
 <Files admin.php>
    <Limit GET POST PUT>
       require valid-user
    </Limit>
    AuthName "Restricted"
    AuthType Basic
AuthUserFile /xxxxx/homepages/xx/xxxxxxx/htdocs/.staccess
 </Files>
# -----------------------------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------------------------

# -------------------------------------------
# Start of NukeSentinel(tm) DENY FROM area
# -------------------------------------------



# $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

#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-([0-9-]*)-([a-z]*)-([0-9]*)-([0-9]*).html([0-9#]*) modules.php?name=News&file=article&thold=$1&mode=$2&order=$3&sid=$4$5
RewriteRule ^article-topic([0-9]*)-page([0-9]*).html article-topic-.html$1&pagenum=$2
RewriteRule ^article-category([0-9]*)-page([0-9]*).html modules.php?name=News&file=categories&op=newindex&catid=$1&pagenum=$2
RewriteRule ^article-category-([0-9]*).html modules.php?name=News&file=categories&op=newindex&catid=$1
RewriteRule ^article-print-([0-9]*).html modules.php?name=News&file=print&sid=$1
RewriteRule ^article-friend-([0-9]*).html modules.php?name=News&file=friend&op=FriendSend&sid=$1
RewriteRule ^article-page-([0-9]*).html modules.php?name=News&pagenum=$1
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
RewriteRule ^news.html news.html

#AvantGo
RewriteRule ^avantgo-print-([0-9]*).html modules.php?name=AvantGo&file=print&sid=$1
RewriteRule ^avantgo.html avantgo.html

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

#Downloads
RewriteRule ^downloadview-(comments|details|editorial)-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=viewdownload$1&lid=$2&ttitle=$3
RewriteRule ^download-mod-([0-9]*).html modules.php?name=Downloads&d_op=modifydownloadrequest&lid=$1
RewriteRule ^download-broken-([0-9]*).html modules.php?name=Downloads&d_op=brokendownload&lid=$1
RewriteRule ^download-shownew-([0-9]*).html modules.php?name=Downloads&d_op=NewDownloads&newdownloadshowdays=$1
RewriteRule ^download-seldate-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=NewDownloadsDate&selectdate=$1
RewriteRule ^download-file-([0-9]*).html modules.php?name=Downloads&d_op=getit&lid=$1
RewriteRule ^ratedownload-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=ratedownload&lid=$1&ttitle=$2
RewriteRule ^ratedownload-([0-9]*).html modules.php?name=Downloads&d_op=ratedownload&lid=$1
RewriteRule ^download-(TopRated|MostPopular)-([0-9]*)-(num|percent).html modules.php?name=Downloads&d_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^downloads-(AddDownload|NewDownloads|MostPopular|TopRated).html modules.php?name=Downloads&d_op=$1
RewriteRule ^download([0-9]*)-orderby([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1&orderby=$2
RewriteRule ^download([0-9]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1&min=$2&orderby=$3&show=$4
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Downloads&d_op=search&query=$1&min=$2&orderby=$3&show=$4
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=search&query=$1&orderby=$2
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=search&query=$1
RewriteRule ^download-outside-([0-9]*).html modules.php?name=Downloads&d_op=outsidedownloadsetup&lid=$1
RewriteRule ^downloads-cat([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1
RewriteRule ^downloads.html downloads.html

#Encyclopedia
RewriteRule ^encyclopedia-([0-9]*)-page([0-9]*)-([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&op=content&tid=$1&page=$2&query=$3
RewriteRule ^encyclopedia-([0-9]*)-page([0-9]*).html modules.php?name=Encyclopedia&op=content&tid=$1&page=$2
RewriteRule ^encyclopedia-([0-9]*)-([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&op=content&tid=$1&query=$2
RewriteRule ^encyclopedia-([0-9]*).html modules.php?name=Encyclopedia&op=content&tid=$1
RewriteRule ^encyclopedia-list-([0-9]*).html modules.php?name=Encyclopedia&op=list_content&eid=$1
RewriteRule ^encyclopedia-terms([0-9]*)-([A-Z]*).html modules.php?name=Encyclopedia&op=terms&eid=$1&ltr=$2
RewriteRule ^encyclopedia-search-([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&file=search&query=$1
RewriteRule ^encyclopedia-search.html modules.php?name=Encyclopedia&file=search
RewriteRule ^encyclopedia.html encyclopedia.html

#Feedback
RewriteRule ^feedback.html contact.html

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

#Forums
RewriteRule ^ftopic-([0-9]*)-([0-9]*)-days([0-9]*)-order(desc|asc)-([A-Za-z0-9_-]*).html forums.html?file=viewtopic&t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
RewriteRule ^ftopic-([0-9]*)-days([0-9]*)-order(desc|asc)-([0-9]*).html forums.html?file=viewtopic&t=$1&postdays=$2&postorder=$3&start=$4
RewriteRule ^ftopic-([0-9]*)-([0-9]*).html forums.html?file=viewtopic&t=$1&start=$2
RewriteRule ^ftopic-([0-9]*)-(previous|next).html forums.html?file=viewtopic&t=$1&view=$2
RewriteRule ^ftopic(t|p)-([0-9]*)-([A-Za-z0-9_-]*).html forums.html?file=viewtopic&$1=$2&highlight=$3
RewriteRule ^ftopic-([0-9]*)-(watch|unwatch)-([0-9]*).html forums.html?file=viewtopic&t=$1&$2=topic&start=$3
RewriteRule ^ftopic(t|p)-([0-9]*).html forums.html?file=viewtopic&$1=$2
RewriteRule ^ftopic(t|p)-([0-9]*).html#([0-9]*) forums.html?file=viewtopic&$1=$2#$3
RewriteRule ^forum-editprofile.html forums.html?file=profile&mode=editprofile
RewriteRule ^forum-userprofile-([0-9]*).html profile-.html$1
RewriteRule ^forum-register-new.html forums.html?file=profile&mode=register&agreed=true
RewriteRule ^forum-register-coppa.html forums.html?file=profile&mode=register&agreed=true&coppa=true
RewriteRule ^forum-register.html forums.html?file=profile&mode=register
RewriteRule ^forums-posting.html forums.html?file=modules&name=Forums&file=posting
RewriteRule ^forum-faq-bbcode.html forums.html?file=faq&mode=bbcode
RewriteRule ^ftopic-post-([0-9]*).html forums.html?file=posting&t=$1
RewriteRule ^ftopic-vote-([0-9]*).html forums.html?file=posting&mode=vote&t=$1
RewriteRule ^ftopic-new-([0-9]*).html forums.html?file=posting&mode=newtopic&f=$1
RewriteRule ^ftopic-reply-([0-9]*).html forums.html?file=posting&mode=reply&t=$1
RewriteRule ^ftopic-edit-([0-9]*).html forums.html?file=posting&mode=editpost&p=$1
RewriteRule ^ftopic-smilies.html forums.html?file=posting&mode=smilies&popup=1
RewriteRule ^ftopic-quote-([0-9]*).html forums.html?file=posting&mode=quote&p=$1
RewriteRule ^forum-posting.html forums.html?file=posting
RewriteRule ^forums-group([0-9]*).html forums.html?file=groupcp&g=$1
RewriteRule ^fsearch-author-([a-zA-Z0-9_-]*).html search-.html$1
RewriteRule ^fsearch-([0-9]*)-([0-9]*).html forums.html?file=search&search_id=$1&start=$2
RewriteRule ^fsearch-(unanswered|egosearch|newposts).html forums.html?file=search&search_id=$1
RewriteRule ^fsearch-results.html forums.html?file=search&mode=results
RewriteRule ^forums-([^index][a-zA-Z0-9_-]*).html forums.html?file=$1
RewriteRule ^forum-c([0-9]*).html forums.html?file=index&c=$1
RewriteRule ^forum-mark.html forums.html?file=index&mark=forums
RewriteRule ^forums.html forums.html?file=index
RewriteRule ^forum-viewonline.html forums.html?file=viewonline
RewriteRule ^forum-([0-9]*)-days([0-9]*)-([0-9]*).html forums.html?file=viewforum&f=$1&topicdays=$2&start=$3
RewriteRule ^forum-([0-9]*)-([0-9]*).html forums.html?file=viewforum&f=$1&start=$2
RewriteRule ^forum-([0-9]*)-mark.html forums.html?file=viewforum&f=$1&mark=topics
RewriteRule ^forum-([0-9]*).html forums.html?file=viewforum&f=$1
RewriteRule ^forums.html forums.html

#Journal
RewriteRule ^journal-search-([a-zA-Z0-9]*).html journal.html?file=search&bywhat=aid&exact=1&forwhat=$1
RewriteRule ^journal(search|delete|commentkill)-(bywhat|jid|onwhat)([a-zA-Z0-9]*)-(forwhat|ref)([a-zA-Z0-9]*).html journal.html?file=$1&$2=$3&$4=$5
RewriteRule ^journal-search-([0-9]*)-([a-zA-Z0-9_-]*).html journal.html?file=search&bywhat=$1&forwhat=$2
RewriteRule ^journal-([a-zA-Z0-9+]*)-(jid|onwhat|disp|op|disp)-([a-zA-Z0-9+]*).html journal.html?file=$1&$2=$3
RewriteRule ^journal-edit.html journal.html?file=edit
RewriteRule ^journal(file|op)-([a-zA-Z0-9]*).html journal.html?$1=$2
RewriteRule ^journal.html journal.html

#Members List
RewriteRule ^members.html members.html

#Private Messages
RewriteRule ^messages-post-([0-9]*).html messages-post-.html$1
RewriteRule ^messages-post-([0-9]*).html messages-.html$1
RewriteRule ^messages-new.html modules.php?name=Private_Messages&file=index&mode=post
RewriteRule ^messages-(sentbox|inbox|savebox|outbox).html modules.php?name=Private_Messages&file=index&folder=$1
RewriteRule ^messages.html messages.html

#Recommend Us
RewriteRule ^recommend.html recommend.html

#Reviews
RewriteRule ^reviews-new.html reviews.html?rop=write_review
RewriteRule ^reviews-preview.html reviews.html?rop=preview_review
RewriteRule ^reviews-([0-9]*)-page([0-9]*).html reviews.html?rop=showcontent&id=$1&page=$2
RewriteRule ^reviews-([0-9]*).html reviews.html?rop=showcontent&id=$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
RewriteRule ^reviews-([0-9]*)-delcomment-([0-9]*).html reviews.html?rop=del_comment&cid=$1&id=$2
RewriteRule ^reviews-([a-zA-Z0-9]*)-orderby-([a-z]*)-([a-zA-Z]*).html reviews.html?rop=$1&field=$2&order=$3
RewriteRule ^reviews-sortby-([a-zA-Z0-9]*).html reviews.html?rop=$1
RewriteRule ^reviews.html reviews.html

#Search
RewriteRule ^search-([a-zA-Z0-9]*)-([0-9]*)-([0-9]*)-([a-zA-Z0-9]*)-([a-zA-Z]*)-([0-9]*).html modules.php?name=Search&author=$1&topic=$2&min=$3&query=$4&type=$5&category=$6
RewriteRule ^search-([a-zA-Z0-9]*)-([0-9]*)-([0-9]*)-([a-zA-Z0-9]*)-([a-zA-Z]*).html modules.php?name=Search&author=$1&topic=$2&min=$3&query=$4&type=$5
RewriteRule ^search-author-([a-zA-Z0-9]*).html modules.php?name=Search&author=$1
RewriteRule ^search-([a-zA-Z0-9_-]*)-([a-zA-Z0-9_-]*).html modules.php?name=Search&query=$1&author=$2
RewriteRule ^search-([0-9]*).html modules.php?name=Search&query=&topic=$1
RewriteRule ^search-users.html modules.php?name=Search&type=users
RewriteRule ^search.html* search.html

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

#Statistics
RewriteRule ^stats-([0-9]*)-([0-9]*)-([0-9]*).html stats.html?op=DailyStats&year=$1&month=$2&date=$3
RewriteRule ^stats-([0-9]*)-([0-9]*).html stats.html?op=MonthlyStats&year=$1&month=$2
RewriteRule ^stats-([0-9]*).html stats-.html$1
RewriteRule ^advstats.html advstats.html
RewriteRule ^stats.html stats.html

#Stories Archive
RewriteRule ^archive.html archive.html
RewriteRule ^archive-showall.html archive.html?sa=show_all
RewriteRule ^archive-([0-9]*)-([0-9]*)-([a-zA-Z]*).* archive.html?sa=show_month&year=$1&month=$2&month_l=$3

#Surveys
RewriteRule ^survey-results-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&op=results&pollID=$1&mode=$2&order=$3&thold=$4
RewriteRule ^survey-results-([0-9]*).html modules.php?name=Surveys&op=results&pollID=$1
RewriteRule ^survey-([0-9]*).html modules.php?name=Surveys&pollID=$1
RewriteRule ^survey-comment-([0-9]*)-(tid|pid)-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&file=comments&pollID=$1&$2=$3&mode=$4&order=$5&thold=$6
RewriteRule ^survey-commreply-([0-9]*)-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&file=comments&op=Reply&pid=$1&pollID=$2&mode=$3&order=$4&thold=$5
RewriteRule ^survey-showreply-([0-9]*)-([0-9]*)-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&file=comments&op=showreply&tid=$1&pollID=$2&pid=$3&mode=$4&order=$5&thold=$6
RewriteRule ^survey-showreply-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&file=comments&op=showreply&tid=$1&mode=$2&order=$3&thold=$4
RewriteRule ^survey-comments.html modules.php?name=Surveys&file=comments
RewriteRule ^surveys.html surveys.html

#Submit_News
RewriteRule ^submit.html submit.html

#Topics
RewriteRule ^topics.html topics.html

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

#WebLinks
RewriteRule ^viewlinkcomments-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html links.html?l_op=viewlinkcomments&lid=$1&ttitle=$2
RewriteRule ^viewlinkdetails-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html links.html?l_op=viewlinkdetails&lid=$1&ttitle=$2
RewriteRule ^vieweditorial-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html links.html?l_op=viewlinkeditorial&lid=$1&ttitle=$2
RewriteRule ^modifylink-([0-9]+).html links.html?l_op=modifylinkrequest&lid=$1
RewriteRule ^brokenlink-([0-9]+).html links.html?l_op=brokenlink&lid=$1
RewriteRule ^outsidelink-([0-9]+).html links.html?l_op=outsidelinksetup&lid=$1
RewriteRule ^linkop-(MostPopular|TopRated)-([0-9]+)-(num|percent).html links.html?l_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^newlinks-([0-9]+).html modules.php\?name=Web_Links&l_op=NewLinks&newlinkshowdays=$1
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 viewlink-.html$1
RewriteRule ^links-([0-9]*)-([a-zA-Z0-9]*).html links.html?file=index&l_op=viewlink&cid=$1&orderby=$2
RewriteRule ^links-([0-9]*)-([0-9]*)-([a-zA-Z0-9]*)-([0-9]*).html links.html?file=index&l_op=viewlink&cid=$1&min=$2&orderby=$3&show=$4
RewriteRule ^link-([0-9]*).html links.html?l_op=viewlink&cid=$1
RewriteRule ^links-search-([a-zA-Z0-9]*)-([0-9]*)-orderby-([a-zA-Z]*)-([0-9]*) links.html?l_op=search&query=$1&min=$2&orderby=$3&show=$4
RewriteRule ^links-search-([a-zA-Z0-9_-]*)-orderby-([a-zA-Z]*).html links.html?l_op=search&query=$1&orderby=$2
RewriteRule ^links-search-([a-zA-Z0-9_-]*).html links.html?l_op=search&query=$1
RewriteRule ^links.html links.html

#Webmail
RewriteRule ^webmail.html modules.php?name=WebMail

#Your Account
RewriteRule ^userinfo-([a-zA-Z0-9_-]*).html userinfo-.html$1
RewriteRule ^account-([a-z_]*).html modules.php?name=Your_Account&op=$1
RewriteRule ^account.html account.html

# $Log: htaccess.GT,v $
# Revision 1.6 2003/11/16 bm
# GT-NExtGEn Beta 0.1
#
# Revision 1.5 2003/10/22 bm
# Added Complete Reviews and Content
#
# Revision 1.4 2003/10/19 bm
# Added Complete Sections and updated GT Distro with file changes
#
# Revision 1.3 2003/10/18 bm
# Added Complete Downloads, Journals, Stats, Forums and Web Links Module Rewrites
# Added Corrections/Fixes for FAQ, Reviews and Sections Modules (bm)
#
# 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
#
#
 
montego







PostPosted: Thu Feb 16, 2006 7:45 am Reply with quote

hinksta, I would move the following lines to the very bottom of your .htaccess file and make sure there is at least one blank line at the very bottom:

Code:


# -------------------------------------------
# Start of NukeSentinel(tm) DENY FROM area
# -------------------------------------------



I wanted to walk through your site to see if I could see exactly what you are seeing, but when I tried to go to the site, it looks like you have backed out your GTNG install. You may have made the mods correctly and it may have been a few "tweaks" to the GT files and/or .htaccess needed, but it was impossible to tell until you provided a link to your site.

If you can spare to wait a month or two, we are currently discussing GTNG and other such implementations internally around RavenNuke76. I'll keep this "thread" on my list of follow-up topics and let you know what we decide.

We are wanting to be very careful to provide only the highest quality, thoroughly tested, well-supported distribution, and so we want to think through this appropriately and with additional input from the community.

Regards,
montego
 
hinksta







PostPosted: Thu Feb 16, 2006 2:52 pm Reply with quote

I'm going to install a bit slower this time.

step 1 : .htaccess
Code:
Options All -Indexes

DirectoryIndex index.php index.htm index.html

# -------------------------------------------
# Start of NukeSentinel(tm) admin.php Auth
# -------------------------------------------
<Files .ftaccess>
  deny from all
</Files>

<Files .staccess>
  deny from all
</Files>

# -----------------------------------------------------------------------------------------------------
# Leave this block commented out unless HTTPAuth is NOT available in your NukeSentinel(tm) Admin Panel.
# This code is mainly for use with CGI Authentication and most servers do not require it.
# -----------------------------------------------------------------------------------------------------
 <Files admin.php>
    <Limit GET POST PUT>
       require valid-user
    </Limit>
    AuthName "Restricted"
    AuthType Basic
AuthUserFile /xxxxxxxxx/homepages/xx/xxxxxxxxx/htdocs/.staccess
 </Files>
# -----------------------------------------------------------------------------------------------------
# -----------------------------------------------------------------------------------------------------


# $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

#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-([0-9-]*)-([a-z]*)-([0-9]*)-([0-9]*).html([0-9#]*) modules.php?name=News&file=article&thold=$1&mode=$2&order=$3&sid=$4$5
RewriteRule ^article-topic([0-9]*)-page([0-9]*).html article-topic-.html$1&pagenum=$2
RewriteRule ^article-category([0-9]*)-page([0-9]*).html modules.php?name=News&file=categories&op=newindex&catid=$1&pagenum=$2
RewriteRule ^article-category-([0-9]*).html modules.php?name=News&file=categories&op=newindex&catid=$1
RewriteRule ^article-print-([0-9]*).html modules.php?name=News&file=print&sid=$1
RewriteRule ^article-friend-([0-9]*).html modules.php?name=News&file=friend&op=FriendSend&sid=$1
RewriteRule ^article-page-([0-9]*).html modules.php?name=News&pagenum=$1
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
RewriteRule ^news.html news.html

#AvantGo
RewriteRule ^avantgo-print-([0-9]*).html modules.php?name=AvantGo&file=print&sid=$1
RewriteRule ^avantgo.html avantgo.html

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

#Downloads
RewriteRule ^downloadview-(comments|details|editorial)-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=viewdownload$1&lid=$2&ttitle=$3
RewriteRule ^download-mod-([0-9]*).html modules.php?name=Downloads&d_op=modifydownloadrequest&lid=$1
RewriteRule ^download-broken-([0-9]*).html modules.php?name=Downloads&d_op=brokendownload&lid=$1
RewriteRule ^download-shownew-([0-9]*).html modules.php?name=Downloads&d_op=NewDownloads&newdownloadshowdays=$1
RewriteRule ^download-seldate-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=NewDownloadsDate&selectdate=$1
RewriteRule ^download-file-([0-9]*).html modules.php?name=Downloads&d_op=getit&lid=$1
RewriteRule ^ratedownload-([0-9]*)-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=ratedownload&lid=$1&ttitle=$2
RewriteRule ^ratedownload-([0-9]*).html modules.php?name=Downloads&d_op=ratedownload&lid=$1
RewriteRule ^download-(TopRated|MostPopular)-([0-9]*)-(num|percent).html modules.php?name=Downloads&d_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^downloads-(AddDownload|NewDownloads|MostPopular|TopRated).html modules.php?name=Downloads&d_op=$1
RewriteRule ^download([0-9]*)-orderby([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1&orderby=$2
RewriteRule ^download([0-9]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1&min=$2&orderby=$3&show=$4
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([0-9]*)-([a-zA-Z0-9+]*)-([0-9]*).html modules.php?name=Downloads&d_op=search&query=$1&min=$2&orderby=$3&show=$4
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*)-([a-zA-Z0-9+]*).html modules.php?name=Downloads&d_op=search&query=$1&orderby=$2
RewriteRule ^download-search-([[:punct:]/:\-\'{}()._&a-zA-Z0-9+=]*).html modules.php?name=Downloads&d_op=search&query=$1
RewriteRule ^download-outside-([0-9]*).html modules.php?name=Downloads&d_op=outsidedownloadsetup&lid=$1
RewriteRule ^downloads-cat([0-9]*).html modules.php?name=Downloads&d_op=viewdownload&cid=$1
RewriteRule ^downloads.html downloads.html

#Encyclopedia
RewriteRule ^encyclopedia-([0-9]*)-page([0-9]*)-([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&op=content&tid=$1&page=$2&query=$3
RewriteRule ^encyclopedia-([0-9]*)-page([0-9]*).html modules.php?name=Encyclopedia&op=content&tid=$1&page=$2
RewriteRule ^encyclopedia-([0-9]*)-([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&op=content&tid=$1&query=$2
RewriteRule ^encyclopedia-([0-9]*).html modules.php?name=Encyclopedia&op=content&tid=$1
RewriteRule ^encyclopedia-list-([0-9]*).html modules.php?name=Encyclopedia&op=list_content&eid=$1
RewriteRule ^encyclopedia-terms([0-9]*)-([A-Z]*).html modules.php?name=Encyclopedia&op=terms&eid=$1&ltr=$2
RewriteRule ^encyclopedia-search-([a-zA-Z0-9_-]*).html modules.php?name=Encyclopedia&file=search&query=$1
RewriteRule ^encyclopedia-search.html modules.php?name=Encyclopedia&file=search
RewriteRule ^encyclopedia.html encyclopedia.html

#Feedback
RewriteRule ^feedback.html contact.html

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

#Forums
RewriteRule ^ftopic-([0-9]*)-([0-9]*)-days([0-9]*)-order(desc|asc)-([A-Za-z0-9_-]*).html forums.html?file=viewtopic&t=$1&start=$2&postdays=$3&postorder=$4&highlight=$5
RewriteRule ^ftopic-([0-9]*)-days([0-9]*)-order(desc|asc)-([0-9]*).html forums.html?file=viewtopic&t=$1&postdays=$2&postorder=$3&start=$4
RewriteRule ^ftopic-([0-9]*)-([0-9]*).html forums.html?file=viewtopic&t=$1&start=$2
RewriteRule ^ftopic-([0-9]*)-(previous|next).html forums.html?file=viewtopic&t=$1&view=$2
RewriteRule ^ftopic(t|p)-([0-9]*)-([A-Za-z0-9_-]*).html forums.html?file=viewtopic&$1=$2&highlight=$3
RewriteRule ^ftopic-([0-9]*)-(watch|unwatch)-([0-9]*).html forums.html?file=viewtopic&t=$1&$2=topic&start=$3
RewriteRule ^ftopic(t|p)-([0-9]*).html forums.html?file=viewtopic&$1=$2
RewriteRule ^ftopic(t|p)-([0-9]*).html#([0-9]*) forums.html?file=viewtopic&$1=$2#$3
RewriteRule ^forum-editprofile.html forums.html?file=profile&mode=editprofile
RewriteRule ^forum-userprofile-([0-9]*).html profile-.html$1
RewriteRule ^forum-register-new.html forums.html?file=profile&mode=register&agreed=true
RewriteRule ^forum-register-coppa.html forums.html?file=profile&mode=register&agreed=true&coppa=true
RewriteRule ^forum-register.html forums.html?file=profile&mode=register
RewriteRule ^forums-posting.html forums.html?file=modules&name=Forums&file=posting
RewriteRule ^forum-faq-bbcode.html forums.html?file=faq&mode=bbcode
RewriteRule ^ftopic-post-([0-9]*).html forums.html?file=posting&t=$1
RewriteRule ^ftopic-vote-([0-9]*).html forums.html?file=posting&mode=vote&t=$1
RewriteRule ^ftopic-new-([0-9]*).html forums.html?file=posting&mode=newtopic&f=$1
RewriteRule ^ftopic-reply-([0-9]*).html forums.html?file=posting&mode=reply&t=$1
RewriteRule ^ftopic-edit-([0-9]*).html forums.html?file=posting&mode=editpost&p=$1
RewriteRule ^ftopic-smilies.html forums.html?file=posting&mode=smilies&popup=1
RewriteRule ^ftopic-quote-([0-9]*).html forums.html?file=posting&mode=quote&p=$1
RewriteRule ^forum-posting.html forums.html?file=posting
RewriteRule ^forums-group([0-9]*).html forums.html?file=groupcp&g=$1
RewriteRule ^fsearch-author-([a-zA-Z0-9_-]*).html search-.html$1
RewriteRule ^fsearch-([0-9]*)-([0-9]*).html forums.html?file=search&search_id=$1&start=$2
RewriteRule ^fsearch-(unanswered|egosearch|newposts).html forums.html?file=search&search_id=$1
RewriteRule ^fsearch-results.html forums.html?file=search&mode=results
RewriteRule ^forums-([^index][a-zA-Z0-9_-]*).html forums.html?file=$1
RewriteRule ^forum-c([0-9]*).html forums.html?file=index&c=$1
RewriteRule ^forum-mark.html forums.html?file=index&mark=forums
RewriteRule ^forums.html forums.html?file=index
RewriteRule ^forum-viewonline.html forums.html?file=viewonline
RewriteRule ^forum-([0-9]*)-days([0-9]*)-([0-9]*).html forums.html?file=viewforum&f=$1&topicdays=$2&start=$3
RewriteRule ^forum-([0-9]*)-([0-9]*).html forums.html?file=viewforum&f=$1&start=$2
RewriteRule ^forum-([0-9]*)-mark.html forums.html?file=viewforum&f=$1&mark=topics
RewriteRule ^forum-([0-9]*).html forums.html?file=viewforum&f=$1
RewriteRule ^forums.html forums.html

#Journal
RewriteRule ^journal-search-([a-zA-Z0-9]*).html journal.html?file=search&bywhat=aid&exact=1&forwhat=$1
RewriteRule ^journal(search|delete|commentkill)-(bywhat|jid|onwhat)([a-zA-Z0-9]*)-(forwhat|ref)([a-zA-Z0-9]*).html journal.html?file=$1&$2=$3&$4=$5
RewriteRule ^journal-search-([0-9]*)-([a-zA-Z0-9_-]*).html journal.html?file=search&bywhat=$1&forwhat=$2
RewriteRule ^journal-([a-zA-Z0-9+]*)-(jid|onwhat|disp|op|disp)-([a-zA-Z0-9+]*).html journal.html?file=$1&$2=$3
RewriteRule ^journal-edit.html journal.html?file=edit
RewriteRule ^journal(file|op)-([a-zA-Z0-9]*).html journal.html?$1=$2
RewriteRule ^journal.html journal.html

#Members List
RewriteRule ^members.html members.html

#Private Messages
RewriteRule ^messages-post-([0-9]*).html messages-post-.html$1
RewriteRule ^messages-post-([0-9]*).html messages-.html$1
RewriteRule ^messages-new.html modules.php?name=Private_Messages&file=index&mode=post
RewriteRule ^messages-(sentbox|inbox|savebox|outbox).html modules.php?name=Private_Messages&file=index&folder=$1
RewriteRule ^messages.html messages.html

#Recommend Us
RewriteRule ^recommend.html recommend.html

#Reviews
RewriteRule ^reviews-new.html reviews.html?rop=write_review
RewriteRule ^reviews-preview.html reviews.html?rop=preview_review
RewriteRule ^reviews-([0-9]*)-page([0-9]*).html reviews.html?rop=showcontent&id=$1&page=$2
RewriteRule ^reviews-([0-9]*).html reviews.html?rop=showcontent&id=$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
RewriteRule ^reviews-([0-9]*)-delcomment-([0-9]*).html reviews.html?rop=del_comment&cid=$1&id=$2
RewriteRule ^reviews-([a-zA-Z0-9]*)-orderby-([a-z]*)-([a-zA-Z]*).html reviews.html?rop=$1&field=$2&order=$3
RewriteRule ^reviews-sortby-([a-zA-Z0-9]*).html reviews.html?rop=$1
RewriteRule ^reviews.html reviews.html

#Search
RewriteRule ^search-([a-zA-Z0-9]*)-([0-9]*)-([0-9]*)-([a-zA-Z0-9]*)-([a-zA-Z]*)-([0-9]*).html modules.php?name=Search&author=$1&topic=$2&min=$3&query=$4&type=$5&category=$6
RewriteRule ^search-([a-zA-Z0-9]*)-([0-9]*)-([0-9]*)-([a-zA-Z0-9]*)-([a-zA-Z]*).html modules.php?name=Search&author=$1&topic=$2&min=$3&query=$4&type=$5
RewriteRule ^search-author-([a-zA-Z0-9]*).html modules.php?name=Search&author=$1
RewriteRule ^search-([a-zA-Z0-9_-]*)-([a-zA-Z0-9_-]*).html modules.php?name=Search&query=$1&author=$2
RewriteRule ^search-([0-9]*).html modules.php?name=Search&query=&topic=$1
RewriteRule ^search-users.html modules.php?name=Search&type=users
RewriteRule ^search.html* search.html

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

#Statistics
RewriteRule ^stats-([0-9]*)-([0-9]*)-([0-9]*).html stats.html?op=DailyStats&year=$1&month=$2&date=$3
RewriteRule ^stats-([0-9]*)-([0-9]*).html stats.html?op=MonthlyStats&year=$1&month=$2
RewriteRule ^stats-([0-9]*).html stats-.html$1
RewriteRule ^advstats.html advstats.html
RewriteRule ^stats.html stats.html

#Stories Archive
RewriteRule ^archive.html archive.html
RewriteRule ^archive-showall.html archive.html?sa=show_all
RewriteRule ^archive-([0-9]*)-([0-9]*)-([a-zA-Z]*).* archive.html?sa=show_month&year=$1&month=$2&month_l=$3

#Surveys
RewriteRule ^survey-results-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&op=results&pollID=$1&mode=$2&order=$3&thold=$4
RewriteRule ^survey-results-([0-9]*).html modules.php?name=Surveys&op=results&pollID=$1
RewriteRule ^survey-([0-9]*).html modules.php?name=Surveys&pollID=$1
RewriteRule ^survey-comment-([0-9]*)-(tid|pid)-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&file=comments&pollID=$1&$2=$3&mode=$4&order=$5&thold=$6
RewriteRule ^survey-commreply-([0-9]*)-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&file=comments&op=Reply&pid=$1&pollID=$2&mode=$3&order=$4&thold=$5
RewriteRule ^survey-showreply-([0-9]*)-([0-9]*)-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&file=comments&op=showreply&tid=$1&pollID=$2&pid=$3&mode=$4&order=$5&thold=$6
RewriteRule ^survey-showreply-([0-9]*)-([a-z]*)-([0-9]*)-([0-9\-]*).html modules.php?name=Surveys&file=comments&op=showreply&tid=$1&mode=$2&order=$3&thold=$4
RewriteRule ^survey-comments.html modules.php?name=Surveys&file=comments
RewriteRule ^surveys.html surveys.html

#Submit_News
RewriteRule ^submit.html submit.html

#Topics
RewriteRule ^topics.html topics.html

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

#WebLinks
RewriteRule ^viewlinkcomments-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html links.html?l_op=viewlinkcomments&lid=$1&ttitle=$2
RewriteRule ^viewlinkdetails-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html links.html?l_op=viewlinkdetails&lid=$1&ttitle=$2
RewriteRule ^vieweditorial-([0-9]+)-([[:punct:]/:\-\'(){}.&=_a-zA-Z0-9\ ]*).html links.html?l_op=viewlinkeditorial&lid=$1&ttitle=$2
RewriteRule ^modifylink-([0-9]+).html links.html?l_op=modifylinkrequest&lid=$1
RewriteRule ^brokenlink-([0-9]+).html links.html?l_op=brokenlink&lid=$1
RewriteRule ^outsidelink-([0-9]+).html links.html?l_op=outsidelinksetup&lid=$1
RewriteRule ^linkop-(MostPopular|TopRated)-([0-9]+)-(num|percent).html links.html?l_op=$1&ratenum=$2&ratetype=$3
RewriteRule ^newlinks-([0-9]+).html modules.php\?name=Web_Links&l_op=NewLinks&newlinkshowdays=$1
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 viewlink-.html$1
RewriteRule ^links-([0-9]*)-([a-zA-Z0-9]*).html links.html?file=index&l_op=viewlink&cid=$1&orderby=$2
RewriteRule ^links-([0-9]*)-([0-9]*)-([a-zA-Z0-9]*)-([0-9]*).html links.html?file=index&l_op=viewlink&cid=$1&min=$2&orderby=$3&show=$4
RewriteRule ^link-([0-9]*).html links.html?l_op=viewlink&cid=$1
RewriteRule ^links-search-([a-zA-Z0-9]*)-([0-9]*)-orderby-([a-zA-Z]*)-([0-9]*) links.html?l_op=search&query=$1&min=$2&orderby=$3&show=$4
RewriteRule ^links-search-([a-zA-Z0-9_-]*)-orderby-([a-zA-Z]*).html links.html?l_op=search&query=$1&orderby=$2
RewriteRule ^links-search-([a-zA-Z0-9_-]*).html links.html?l_op=search&query=$1
RewriteRule ^links.html links.html

#Webmail
RewriteRule ^webmail.html modules.php?name=WebMail

#Your Account
RewriteRule ^userinfo-([a-zA-Z0-9_-]*).html userinfo-.html$1
RewriteRule ^account-([a-z_]*).html modules.php?name=Your_Account&op=$1
RewriteRule ^account.html account.html

# $Log: htaccess.GT,v $
# Revision 1.6 2003/11/16 bm
# GT-NExtGEn Beta 0.1
#
# Revision 1.5 2003/10/22 bm
# Added Complete Reviews and Content
#
# Revision 1.4 2003/10/19 bm
# Added Complete Sections and updated GT Distro with file changes
#
# Revision 1.3 2003/10/18 bm
# Added Complete Downloads, Journals, Stats, Forums and Web Links Module Rewrites
# Added Corrections/Fixes for FAQ, Reviews and Sections Modules (bm)
#
# 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
#
#

# -------------------------------------------
# Start of NukeSentinel(tm) DENY FROM area
# -------------------------------------------


Step 2 : header.php
Code:
if (stristr(htmlentities($_SERVER['PHP_SELF']), "header.php")) {

    Header("Location: index.php");
    die();
}
#Start of Google Tap Header
global $nextgen_name, $prefix, $db;

// Google Tap On or Off, 1=On, 0=Off
$next_gen_ob = 1;

//Used for main module or a module without a name
if ($nextgen_name == "") {
$sql = "SELECT main_module FROM ".$prefix."_main";
$result = $db->sql_query($sql);
$row = $db->sql_fetchrow($result);
$mainmod_name = $row[main_module];
$nextgen_name = $mainmod_name;
}

//Make the path to the GT-NExtGEn Files
$nextgen_path = "GoogleTap/GT-".$nextgen_name.".php";
if ($next_gen_ob == 1) {
   if (file_exists($nextgen_path)) {
   ob_start();
   } else {
   $next_gen_ob = 0;
   }
}

function replace_for_mod_rewrite(&$s, $nextgen_path) {

//Check to see if file exists before continuing
     if (file_exists($nextgen_path)) {
     include($nextgen_path);
     }
     $s = preg_replace($urlin, $urlout, $s);
     return $s;
} #End of Google Tap Header

define('NUKE_HEADER', true);
require_once("mainfile.php");

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

Step 3 : footer.php
Code:
function foot() {

    global $prefix, $user_prefix, $db, $index, $user, $cookie, $storynum, $user, $cookie, $Default_Theme, $foot1, $foot2, $foot3, $foot4, $home, $name, $admin;
    if(defined('HOME_FILE')) {
      blocks("Down");
        include("includes/cblocks3.php"); // if you want this on all pages, place it above if ($home == 1) {
    } else {
        include("includes/cblocks4.php"); // if you want this on all pages, place it above if ($home == 1) {
    }
    if (basename($_SERVER['PHP_SELF']) != "index.php" AND defined('MODULE_FILE') AND file_exists("modules/$name/copyright.php") && $commercial_license != 1) {
        $cpname = str_replace("_", " ", $name);
        echo "<div align=\"right\"><a href=\"javascript:openwindow()\">$cpname &copy;</a></div>";
    }
    if (basename($_SERVER['PHP_SELF']) != "index.php" AND defined('MODULE_FILE') AND (file_exists("modules/$name/admin/panel.php") && is_admin($admin))) {
        echo "<br>";
        OpenTable();
        include("modules/$name/admin/panel.php");
        CloseTable();
    }
    themefooter();
    if (file_exists("includes/custom_files/custom_footer.php")) {
     include_once("includes/custom_files/custom_footer.php");
    }
    echo "</body>\n</html>";
    ob_end_flush();
    die();
}
//Multiheadlines module entry
   require( "modules/Multiheadlines/getrss.php" );
   
   #Start of GoogleTap Footer
if ($next_gen_ob == 1) {
// Store Buffer in $contents
$contents = ob_get_contents();
//Replace all standalone &'s with &amp's
$contents = preg_replace("(&(?!([a-zA-Z]{2,6}|[0-9\#]{1,6})[\;]))", "&amp;", $contents);
//Fix up for && in script and bad coding of middot;'s, and  ;'s
$contents = str_replace(array("&amp;&amp;", "&amp;middot", "&amp;nbsp"), array("&&", "·", " ;"), $contents);
//delete output buffer and stop buffering
ob_end_clean();
//display modified buffer to screen
echo replace_for_mod_rewrite($contents, $nextgen_path);
} else {
//if module has unusual method of including footer, make NExtGEn variables
//global and try it again. If variables have values for NExtGEn it will succeed
//else it will go to normal footer.
global $next_gen_ob, $nextgen_path;
   if ($next_gen_ob == 1 AND $nextgen_path != "") {
   $contents = ob_get_contents();
   $contents = preg_replace("(&(?!([a-zA-Z]{2,6}|[0-9\#]{1,6})[\;]))", "&amp;", $contents);
   $contents = str_replace(array("&amp;&amp;", "&amp;middot", "&amp;nbsp"), array("&&", "·", " ;"), $contents);
   ob_end_clean();
   echo replace_for_mod_rewrite($contents, $nextgen_path);
   }
}
#End of GoogleTap Footer
   
foot();

Step 4 : modules.php
Code:
define('MODULE_FILE', true);

require_once("mainfile.php");
$module = 1;
$name = addslashes(trim($name));
if(isset($name)) {
    if(eregi("http\:\/\/", $name)) { die("Hi&nbsp;and&nbsp;Bye"); }
    if(eregi("http\:\/\/", $file)) { die("Hi&nbsp;and&nbsp;Bye"); }
    $modstring = strtolower($_SERVER['QUERY_STRING']);
    if(stripos_clone($modstring,"&user=") AND ($name=="Private_Messages" || $name=="Forums" || $name=="Members_List")) header("Location: index.php");
   $nextgen_name = $name;
    global $nukeuser, $db, $prefix;

Step 5 : includes/sessions.php
Code:
  if ($userdata['user_level'] > 1) {

   if ( !empty($SID) && !eregi('sid=', $url)&& !areyouabout() )
   {
 if ( !empty($SID) && !eregi('sid=', $url) )   {
   $url .= ( ( strpos($url, '?') != false ) ?  ( ( $non_html_amp ) ? '&' : '&amp;' ) : '?' ) . $SID;
}
}
}
return($url);
}
function areyouabot() {
global $HTTP_SERVER_VARS;
        $RobotsList = array (
        "antibot",
        "appie",
        "architext",
        "bjaaland",
        "digout4u",
        "echo",
        "fast-webcrawler",

Step 6 : ftp GT-Top.php - Short urls give 404 error

Got Guardian's MS_GTBlocks_040

Step 7 : mainfile.php
Code:
function render_blocks($side, $blockfile, $title, $content, $bid, $url) {

    if(!defined('BLOCK_FILE')) {
      define('BLOCK_FILE', true);
    }
    if (empty($url)) {
      if (empty($blockfile)) {
          if ($side == "c") {
            themecenterbox($title, $content);
          } elseif ($side == "d") {
            themecenterbox($title, $content);
          } else {
            themesidebox($title, $content);
          }
      } else {
            $sGTBlockPath = "GoogleTap/GTB-".$blockfile;
            if ( @file_exists( $sGTBlockPath ) ) { //Block has been GoogleTapped
                $iGTBlockSet = 1;
                ob_start();
            } else {
                $iGTBlockSet = 0;
            }
          if ($side == "c") {
            blockfileinc($title, $blockfile, 1);
          } elseif ($side == "d") {
            blockfileinc($title, $blockfile, 1);
          } else {
            blockfileinc($title, $blockfile);
          }
          if ( $iGTBlockSet ) {
               $sGTBlockContents = ob_get_contents();
               //Replace all standalone &'s with &amp's
               $sGTBlockContents = preg_replace("(&(?!([a-zA-Z]{2,6}|[0-9\#]{1,6})[\;]))", "&amp;", $sGTBlockContents);
               //Fix up for && in script and bad coding of middot;'s, and  ;'s
               $sGTBlockContents = str_replace(array("&amp;&amp;", "&amp;middot", "&amp;nbsp"), array("&&", "·", " ;"), $sGTBlockContents);
               //delete output buffer and stop buffering
               ob_end_clean();
               //display modified buffer to screen
               echo replace_for_mod_rewrite($sGTBlockContents, $sGTBlockPath);
            }
      }
   } else {
      if ($side == "c" OR $side == "d") {
          headlines($bid,1);
      } else {
             headlines($bid);
      }
    }
}

function blocks($side) {

Step 8 : ftp GTB-block-Old_Articles.php - Short urls give 404 error
 
montego







PostPosted: Thu Feb 16, 2006 7:22 pm Reply with quote

hinksta,

The first line under #Articles in your .htaccess file is not right. Uugghhh... I cannot post it because Raven's own GoogleTap is overwriting the URLs... interesting. Never even considered that.

Ok... lets try that again. This time, I am going to add a space in the name modules, so see if this matches what you really have...

RewriteRule ^article-([0-9]*)-([a-z]*)-([0-9]*)-([0-9]*).html m odules.php?name=News&file=article&sid=$1&mode=$2&order=$3&thold=$4 [L]


Some of you other .htaccess lines do not look right to me either, but lets work a few at a time to see which ones don't work for you. I have to leave work now and make the treck home. I'll check back with you in the morning.
 
montego







PostPosted: Thu Feb 16, 2006 7:23 pm Reply with quote

Actually, better yet, send me your .htaccess file (or at least the rewrite links for GTNG) in a text file to: montego { _ at --} montegoscripts ((do t)) com.
 
hinksta







PostPosted: Thu Feb 16, 2006 7:50 pm Reply with quote

Thanks montego, I've sent the .htaccess file.

article RewriteRule is the same (maybe not so good to gt the forum?)
 
hinksta







PostPosted: Fri Feb 17, 2006 5:45 pm Reply with quote

Bang Head killing me ROTFL

I found the answer in the second post of this forum

change .htaccess
Code:
modules.php

to
Code:
/modules.php
 
montego







PostPosted: Sat Feb 18, 2006 8:23 am Reply with quote

hinksta, sorry that I have not responded... meant to get to it yesterday morning, but was swamped with other issues.

Are you "Ok" now? By the way, also got your email about your first GTB GT file! Way to go! I really like your site. I'll take a look at it again today to check on your progress.

Again, great job!
 
hinksta







PostPosted: Sat Feb 18, 2006 9:02 am Reply with quote

Very happy

I may be wrong but i'm sure having rewrite in the .htaccess file has made the pages load faster

googleads are not showing on forums and multiheadlines (may just need to wait a bit)

Need to have a look at the admin/module updates from 040, got any advice or have a readymade?

If i want to change the html urls should changes be made to the .htaccess file only or also the urlout array in gt-block?
 
montego







PostPosted: Sat Feb 18, 2006 10:05 am Reply with quote

hinksta wrote:
I may be wrong but i'm sure having rewrite in the .htaccess file has made the pages load faster


Doubtful that it is rewrite... in fact, it has to do alot more work to rewrite those urls.

Quote:
googleads are not showing on forums and multiheadlines (may just need to wait a bit)


Are you at least seeing their default ad? I don't have time to look right now... I'm out the door.

Quote:
Need to have a look at the admin/module updates from 040, got any advice or have a readymade?


You should use URL rewriting sparingly. There is NO value to shortening any of the admin links because the whole point to this is for search engines.

Quote:
If i want to change the html urls should changes be made to the .htaccess file only or also the urlout array in gt-block?


What I do is first change the GT urlin/out lines and see if a rewrite rule already covers it. If you get a 404, you have to also add another line to your .htaccess to rewrite it back or modify an existing one (be careful with this and test, test, test.)
 
hinksta







PostPosted: Sat Feb 18, 2006 10:52 am Reply with quote

Quote:
Are you at least seeing their default ad?


?
right side add block works on other pages, empty on multiheadlines page.
forums add works with long name but not short
http://www.ontheball.info/modules.php?name=Forums&file=index

Quote:
There is NO value to shortening any of the admin links because the whole point to this is for search engines.

I thought there might be admin functions in this part
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> GT - Next Gen and Standard

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©