MemHT Portal is a Free PHP CMS and Blog
It permit the creation and the management online of websites with few and easy steps.
It's completelly customizable, expandable and suitable for all needs.
Moderators: Moderators
Forum RSS feedReply
MOD Rewrite ERRORs
AuthorText
tom_rahman

Avatar

Posts: 10
Contributes: 26

Gender: _NEUTRAL_
Online: No
Date: 05/09/2008 06:16
MOD Rewrite ERRORs
#post11508
Hi everyone,
I was hoping some one can help me here. When we turn on the MOD Rewrite the the pages goes 404 error and missing. any advice?

Site: www.bangla.com.au
MEMHT V: 3.9.0
Server: Apache
Delete Edit Quote
 
JPappi
Senior Member
Avatar

Posts: 295
Contributes: 72

Gender: _MALE_
Online: No
Date: 05/09/2008 09:43
Re: MOD Rewrite ERRORs
#post11509
First, have you change anything at .htaccess or inc/modrewrite.php?

You have to show a little bit more, for example a broken .htm url.
JPappi - have fun with memHT

Project at work: Find-4u.de

Image
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5137
Contributes: 2480

Gender: _MALE_
Online: No
Date: 05/09/2008 11:58
Re: MOD Rewrite ERRORs
#post11511
Check your .htaccess RewriteBase should be set to /site/retro/
Delete Edit Quote
 
tom_rahman

Avatar

Posts: 10
Contributes: 26

Gender: _NEUTRAL_
Online: No
Date: 05/09/2008 16:08
Re: MOD Rewrite ERRORs
#post11523
jpappi and mem thanks got the .htaccess right, now the download section not working. it's activated so you see the problem.
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5137
Contributes: 2480

Gender: _MALE_
Online: No
Date: 05/09/2008 16:26
Re: MOD Rewrite ERRORs
#post11524
www.bangla.com.au/site/retro/

index.php Not Found
Delete Edit Quote
 
tom_rahman

Avatar

Posts: 10
Contributes: 26

Gender: _NEUTRAL_
Online: No
Date: 06/09/2008 01:21
Re: MOD Rewrite ERRORs
#post11537
hello mem,
sorry not sure what happend them please try now http://www.bangla.com.au/site/retro/index.php
View Image resized (Original file: 555x499)
Thumb
Delete Edit Quote
 
mem
MemHT's Dad
Admin & Developer

Avatar

Posts: 5137
Contributes: 2480

Gender: _MALE_
Online: No
Date: 06/09/2008 11:54
Re: MOD Rewrite ERRORs
#post11553
Only the news and downloads pages has problems. Are you sure you haven't modified anything in .htaccess and inc/inc_modrewrite.php?
Edited: 06/09/2008 11:55
Delete Edit Quote
 
tom_rahman

Avatar

Posts: 10
Contributes: 26

Gender: _NEUTRAL_
Online: No
Date: 06/09/2008 12:14
Re: MOD Rewrite ERRORs
#post11554
hi mem, thanks for your reply. only edit i've done is the subfolder location for the site location.
[ps: only calendar code added]

/.htaccess
code
###########################################################################
#       - MemHT Portal -
#       
#       Copyright (C) 2007-2008 by Miltenovik Manojlo
#       http://www.memht.com
#       
#       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, or
#       (at your opinion) any later version.
#       
#       This program is distributed in the hope that it will be useful,
#       but WITHOUT ANY WARRANTY; without even the implied warranty of
#       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#       GNU General Public License for more details.
#       
#       You should have received a copy of the GNU General Public License along
#       with this program; if not, see <http://www.gnu.org/licenses/> (GPLv2)
#       or write to the Free Software Foundation, Inc., 51 Franklin Street,
#       Fifth Floor, Boston, MA02110-1301, USA.
#
###########################################################################

# =========================================================================
# Files protection
# =========================================================================
<Files .htaccess>
        order allow,deny
        deny from all
</Files>

# =========================================================================
# Error handler
# =========================================================================
# Change the site path if needed
# Example:
# ErrorDocument 404 /folder/index.php?page=error&cod=404
# -------------------------------------------------------------------------
ErrorDocument 500 /index.php?page=error&cod=500
ErrorDocument 404 /index.php?page=error&cod=404
ErrorDocument 403 /index.php?page=error&cod=403
ErrorDocument 401 /index.php?page=error&cod=401
ErrorDocument 400 /index.php?page=error&cod=400

# =========================================================================
# Security settings
# =========================================================================
<IfModule mod_php5.c>
        php_value register_globals         0
        php_value magic_quotes_gpc         0
        php_value session.auto_start       0
        php_value safe_mode                0
</IfModule>

<IfModule sapi_apache2.c>
        php_value register_globals         0
        php_value magic_quotes_gpc         0
        php_value session.auto_start       0
        php_value safe_mode                0
</IfModule>

<IfModule mod_php4.c>
        php_value register_globals         0
        php_value magic_quotes_gpc         0
        php_value session.auto_start       0
        php_value safe_mode                0
</IfModule>

# =========================================================================
# Rewrite Engine
# =========================================================================
<IfModule mod_rewrite.c>
        RewriteEngine On

        # -------------------------------------------
        # Change the site path if needed
        # Example:
        # RewriteBase /folder/
        # -------------------------------------------
        RewriteBase /site/retro/
       
        # Index -------------------------------------
        RewriteRule ^index.html*$ index.php [L]
       
        # Archive -----------------------------------
        RewriteRule ^archive.html*$ index.php?page=archive [L]
        RewriteRule ^archive_([^_]+)_([0-9]+)_([0-9]+).html*$ index.php?page=archive&arg=$1&year=$2&month=$3 [L]
       
        # Articles ----------------------------------
        RewriteRule ^articles.html*$ index.php?page=articles [L]
        RewriteRule ^articles_argument_([^_]+).html*$ index.php?page=articles&op=arg&title=$1 [L]
        RewriteRule ^articles_([^_]+).html*$ index.php?page=articles&op=readArticle&title=$1 [L]
        RewriteRule ^articles_([^_]+)_([0-9]+).html*$ index.php?page=articles&op=readArticle&title=$1&pg=$2 [L]
       
        # Blog --------------------------------------
        RewriteRule ^blog.html*$ index.php?page=blog [L]
        RewriteRule ^blog_([0-9]+).html*$ index.php?page=blog&pg=$1 [L]
        RewriteRule ^blog_view_([^_]+).html*$ index.php?page=blog&title=$1 [L]
        RewriteRule ^blog_categories.html*$ index.php?page=blog&op=categories [L]
        RewriteRule ^blog_category_([^_]+).html*$ index.php?page=blog&category=$1 [L]
        RewriteRule ^blog_category_([^_]+)_([0-9]+).html*$ index.php?page=blog&category=$1&pg=$2 [L]
        RewriteRule ^blog_archive_([0-9]+)_([0-9]+).html*$ index.php?page=blog&year=$1&month=$2 [L]
        RewriteRule ^blog_archive_([0-9]+)_([0-9]+)_([0-9]+).html*$ index.php?page=blog&year=$1&month=$2&pg=$3 [L]
       
        # Contact -----------------------------------
        RewriteRule ^contact.html*$ index.php?page=contact [L]
       
        # Download ----------------------------------
        RewriteRule ^download.html*$ index.php?page=download [L]
        RewriteRule ^download_([0-9]+)_([^_]+).html*$ index.php?page=download&op=category&id=$1&title=$2 [L]
        RewriteRule ^download_([0-9]+)_([^_]+)_([0-9]+).html*$ index.php?page=download&op=category&id=$1&title=$2&pg=$3 [L]
        RewriteRule ^download_([^_]+).html*$ index.php?page=download&op=getFile&title=$1 [L]

        # Faq ---------------------------------------
        RewriteRule ^faq.html*$ index.php?page=faq [L]
        RewriteRule ^faq_([0-9]+)_([^_]+).html*$ index.php?page=faq&op=arg&id=$1&title=$2 [L]
        RewriteRule ^faq_([0-9]+)_([^_]+)_([0-9]+).html*$ index.php?page=faq&op=arg&id=$1&title=$2&pg=$3 [L]
        RewriteRule ^faq_([0-9]+).html*$ index.php?page=faq&op=read&id=$1 [L]
       
        # Forum -------------------------------------
        RewriteRule ^forum.html*$ index.php?page=forum [L]
        RewriteRule ^forum_category_([0-9]+)_([^_]+).html*$ index.php?page=forum&op=viewCategory&id=$1&title=$2 [L]
        RewriteRule ^forum_list_([0-9]+)_([^_]+).html$ index.php?page=forum&op=viewForum&id=$1&title=$2 [L]
        RewriteRule ^forum_list_([0-9]+)_([^_]+)_([0-9]+).html$ index.php?page=forum&op=viewForum&id=$1&title=$2&pg=$3 [L]
        RewriteRule ^forum_thread_([0-9]+)_([^_]+).html$ index.php?page=forum&op=viewThread&id=$1&title=$2 [L]
        RewriteRule ^forum_thread_([0-9]+)_([^_]+)_([0-9]+).html$ index.php?page=forum&op=viewThread&id=$1&title=2&pg=$3 [L]
        RewriteRule ^forum_newthread_([0-9]+).html$ index.php?page=forum&op=newThread&id=$1 [L]
        RewriteRule ^forum_reply_([0-9]+).html$ index.php?page=forum&op=reply&id=$1 [L]
        RewriteRule ^forum_quote_([0-9]+)_([0-9]+).html$ index.php?page=forum&op=reply&id=$1&quote=$2 [L]
        RewriteRule ^forum_edit_([0-9]+).html$ index.php?page=forum&op=editPost&id=$1 [L]
        RewriteRule ^forum_delete_([0-9]+).html$ index.php?page=forum&op=deletePost&id=$1 [L]
       
        # Gallery -----------------------------------
        RewriteRule ^gallery.html$ index.php?page=gallery [L]
        RewriteRule ^gallery_([0-9]+)_([^_]+).html$ index.php?page=gallery&op=showGallery&id=$1&title=$2 [L]
        RewriteRule ^gallery_([0-9]+)_([^_]+)_([0-9]+).html$ index.php?page=gallery&op=showGallery&id=$1&title=$2&pg=$3 [L]
       
        # Guide -------------------------------------
        RewriteRule ^guide.html$ index.php?page=guide [L]
        RewriteRule ^guide_argument_([^_]+).html$ index.php?page=guide&op=arg&title=$1 [L]
        RewriteRule ^guide_argument_([^_]+)_([0-9]+).html$ index.php?page=guide&op=arg&title=$1&pg=$2 [L]
        RewriteRule ^guide_([^_]+).html$ index.php?page=guide&op=readGuide&title=$1 [L]
        RewriteRule ^guide_([^_]+)_([0-9]+).html$ index.php?page=guide&op=readGuide&title=$1&pg=$2 [L]
       
        # MyLinks -----------------------------------
        RewriteRule ^mylinks.html$ index.php?page=mylinks [L]
        RewriteRule ^mylinks_([0-9]+)_([^_]+).html$ index.php?page=mylinks&op=showCategory&id=$1&title=$2 [L]
        RewriteRule ^mylinks_([0-9]+)_([^_]+)_([0-9]+).html$ index.php?page=mylinks&op=showCategory&id=$1&title=$2&pg=$3 [L]
        RewriteRule ^mylinks_add_([0-9]+).html$ index.php?page=mylinks&op=addLink&id=$1 [L]
       
        # MyPage ------------------------------------
        RewriteRule ^mypage.html$ index.php?page=mypage [L]
        RewriteRule ^mypage_([^_]+).html$ index.php?page=mypage&op=openPage&title=$1 [L]
        RewriteRule ^mypage_([^_]+)_([0-9]+).html$ index.php?page=mypage&op=openPage&title=$1&pg=$2 [L]
       
        # News --------------------------------------
        RewriteRule ^news.html$ index.php?page=news [L]
        RewriteRule ^news_pg_([0-9]+).html$ index.php?page=news&pg=$1 [L]
        RewriteRule ^news_([^_]+).html$ index.php?page=news&op=readNews&title=$1 [L]
       
        # Newsletter --------------------------------
        RewriteRule ^newsletter.html$ index.php?page=newsletter [L]
       
        # Partners ----------------------------------
        RewriteRule ^partners.html$ index.php?page=partners [L]
        RewriteRule ^partners_([0-9]+).html$ index.php?page=partners&op=openPartnerLink&id=$1 [L]
       
        # Pdf ---------------------------------------
        RewriteRule ^pdf_([^_]+)_([0-9]+).pdf$ pages/$1/pdf.php?id=$2 [L]
       
        # Pvt Messages ------------------------------
        RewriteRule ^pvtmsg.html$ index.php?page=pvtmsg [L]
        RewriteRule ^pvtmsg_([0-9]+).html$ index.php?page=pvtmsg&pg=$1 [L]
        RewriteRule ^pvtmsg_view_([0-9]+).html$ index.php?page=pvtmsg&op=viewMessage&id=$1 [L]
        RewriteRule ^pvtmsg_new.html$ index.php?page=pvtmsg&op=newMessage [L]
        RewriteRule ^pvtmsg_new_([^_]+).html$ index.php?page=pvtmsg&op=newMessage&recipient=$1 [L]
        RewriteRule ^pvtmsg_reply_([0-9]+).html$ index.php?page=pvtmsg&op=reply&id=$1 [L]
        RewriteRule ^pvtmsg_delete_([0-9]+).html$ index.php?page=pvtmsg&op=delete&id=$1 [L]
        RewriteRule ^pvtmsg_delete_([0-9]+)_ok.html$ index.php?page=pvtmsg&op=delete&id=$1&ok=true [L]
       
        # RSS ---------------------------------------
        RewriteRule ^rss.html$ index.php?page=rss [L]
        RewriteRule ^rss-([^-]+).xml$ rss.php?page=$1 [L]
        RewriteRule ^rss-(blog|download)-([0-9]+).xml$ rss.php?page=$1&cat=$2 [L]
        RewriteRule ^rss-(articles|guide|news)-([0-9]+).xml$ rss.php?page=$1&topic=$2 [L]
        RewriteRule ^rss-(articles|guide|news)-([0-9]+)-([0-9]+).xml$ rss.php?page=$1&topic=$2&items=$3 [L]
        RewriteRule ^rss-forum-([0-9]+).xml$ rss.php?page=forum&forum=$1 [L]
        RewriteRule ^sitemap.xml$ sitemap.php [L]
       
        # Search ------------------------------------
        RewriteRule ^search.html$ index.php?page=search [L]
       
        # Send File ---------------------------------
        RewriteRule ^sendfile.html$ index.php?page=sendfile [L]
       
        # Send News ---------------------------------
        RewriteRule ^sendnews.html$ index.php?page=sendnews [L]
       
        # SiteMap -----------------------------------
        RewriteRule ^sitemap.html$ index.php?page=sitemap [L]
       
        # Staff -------------------------------------
        RewriteRule ^staff.html$ index.php?page=staff [L]

# Calendar ----------------------------------
RewriteRule ^calendar.html$ index.php?page=calendar [NC]
RewriteRule ^calendar-new.html$ index.php?page=calendar&op=newevent [NC]
RewriteRule ^calendar-([0-9]+)-([0-9]+)-([0-9]+).html$ index.php?page=calendar&op=events&year=$1&month=$2&day=$3 [NC]
       
        # Surveys -----------------------------------
        RewriteRule ^surveys.html$ index.php?page=surveys [L]
        RewriteRule ^surveys_result_([0-9]+).html$ index.php?page=surveys&op=result&id=$1 [L]
       
        # Tags --------------------------------------
        RewriteRule ^tags.html$ index.php?page=tags [L]
        RewriteRule ^tags_([^_]+).html$ index.php?page=tags&op=list&tag=$1 [L]
       
        # Topics ------------------------------------
        RewriteRule ^topics.html$ index.php?page=topics [L]
       
        # Users -------------------------------------
        RewriteRule ^users.html$ index.php?page=users [L]
        RewriteRule ^users_edit.html$ index.php?page=users&op=editProfile [L]
        RewriteRule ^users_logout.html$ index.php?page=users&logout=1 [L]
        RewriteRule ^users_register.html$ index.php?page=users&op=register [L]
        RewriteRule ^users_lostpassword.html$ index.php?page=users&op=lostPassword [L]
        RewriteRule ^users_info_([^_]+).html$ index.php?page=users&op=userInfo&usert=$1 [L]
</IfModule>


code
<?php

/********************************************************************************
        - MemHT Portal -
       
        Copyright (C) 2007-2008 by Miltenovik Manojlo
        http://www.memht.com
       
        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, or
        (at your opinion) any later version.
       
        This program is distributed in the hope that it will be useful,
        but WITHOUT ANY WARRANTY; without even the implied warranty of
        MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
        GNU General Public License for more details.
       
        You should have received a copy of the GNU General Public License along
        with this program; if not, see <http://www.gnu.org/licenses/> (GPLv2)
        or write to the Free Software Foundation, Inc., 51 Franklin Street,
        Fifth Floor, Boston, MA02110-1301, USA.
               
********************************************************************************/


if (stristr(htmlentities($_SERVER['PHP_SELF']), "inc_modrewrite.php")) {
        die("<table style='padding: 2px; border: 1px solid #999; background-color: #EEE; font-family: Verdana; font-size: 10px;' align='center'><tr><td><b>Error:</b> This file cannot be opened directly!</td></tr></table>");
}

function replace_for_mod_rewrite($s) {
        global $siteConfig;
       
        $burlin = array(
                "`href=(['|"|#])index.php`is",
                "`href=(['|"|#])rss.php`is",
                "`href=(['|"|#])sitemap.php`is",
                "`href=(['|"|#])pages/([^/]+)/pdf.php`is"
        );
        $burlout = array(
                "href=\1".$siteConfig['site_url']."/index.php",
                "href=\1".$siteConfig['site_url']."/rss.php",
                "href=\1".$siteConfig['site_url']."/sitemap.php",
                "href=\1".$siteConfig['site_url']."/pages/$2/pdf.php"
        );
        $s = preg_replace($burlin,$burlout, $s); //index.php,rss.php,sitemap.php,pdf.php
       
        $urlin = array(
                //Home
                "`".$siteConfig['site_url']."/index.php(['|"|#])`is",
                //Archive
                "`".$siteConfig['site_url']."/index.php?page=archive(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=archive&(amp;)*arg=([^&#'"-]+)&(amp;)*year=([0-9]+)&(amp;)*month=([0-9]+)(['|"|#])`is",
                //Articles
                "`".$siteConfig['
site_url']."/index.php?page=articles(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=articles&(amp;)*op=arg&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/index.php?page=articles&(amp;)*op=readArticle&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=articles&(amp;)*op=readArticle&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                        //Clean
                        "`".$siteConfig['
site_url']."/index.php?page=articles&(amp;)*op=arg&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                        "`".$siteConfig['site_url']."/index.php?page=articles&(amp;)*op=readArticle&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                        "`".$siteConfig['
site_url']."/index.php?page=articles&(amp;)*op=readArticle&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                //Blog
                "`".$siteConfig['site_url']."/index.php?page=blog(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=blog&(amp;)*pg=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=blog&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/index.php?page=blog&(amp;)*op=categories(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=blog&(amp;)*category=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/index.php?page=blog&(amp;)*category=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=blog&(amp;)*year=([0-9]+)&(amp;)*month=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=blog&(amp;)*year=([0-9]+)&(amp;)*month=([0-9]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                        //Clean
                        "`".$siteConfig['site_url']."/index.php?page=blog&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                        "`".$siteConfig['
site_url']."/index.php?page=blog&(amp;)*cid=([0-9]+)&(amp;)*category=([^&#'"_]+)(['|"|#])`is",
                        "`".$siteConfig['site_url']."/index.php?page=blog&(amp;)*cid=([0-9]+)&(amp;)*category=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                //Contact
                "`".$siteConfig['
site_url']."/index.php?page=contact(['|"|#])`is",
                //Download
                "`".$siteConfig['site_url']."/index.php?page=download(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=download&(amp;)*op=category&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/index.php?page=download&(amp;)*op=category&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=download&(amp;)*op=getFile&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                        //Clean
                        "`".$siteConfig['
site_url']."/index.php?page=download&(amp;)*op=getFile&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                //Faq
                "`".$siteConfig['site_url']."/index.php?page=faq(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=faq&(amp;)*op=arg&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/index.php?page=faq&(amp;)*op=arg&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=faq&(amp;)*op=read&(amp;)*id=([0-9]+)(['|"|#])`is",
                //Forum
                "`".$siteConfig['site_url']."/index.php?page=forum(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=forum&(amp;)*op=viewCategory&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/index.php?page=forum&(amp;)*op=viewForum&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=forum&(amp;)*op=viewForum&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/index.php?page=forum&(amp;)*op=viewThread&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=forum&(amp;)*op=viewThread&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/index.php?page=forum&(amp;)*op=newThread&(amp;)*id=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=forum&(amp;)*op=reply&(amp;)*id=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=forum&(amp;)*op=reply&(amp;)*id=([0-9]+)&(amp;)*quote=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=forum&(amp;)*op=editPost&(amp;)*id=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=forum&(amp;)*op=deletePost&(amp;)*id=([0-9]+)(['|"|#])`is",
                //Gallery
                "`".$siteConfig['site_url']."/index.php?page=gallery(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=gallery&(amp;)*op=showGallery&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/index.php?page=gallery&(amp;)*op=showGallery&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",  
                //Guide
                "`".$siteConfig['site_url']."/index.php?page=guide(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=guide&(amp;)*op=arg&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/index.php?page=guide&(amp;)*op=arg&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=guide&(amp;)*op=readGuide&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/index.php?page=guide&(amp;)*op=readGuide&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                        //Clean
                        "`".$siteConfig['site_url']."/index.php?page=guide&(amp;)*op=arg&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                        "`".$siteConfig['
site_url']."/index.php?page=guide&(amp;)*op=arg&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                        "`".$siteConfig['site_url']."/index.php?page=guide&(amp;)*op=readGuide&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                        "`".$siteConfig['
site_url']."/index.php?page=guide&(amp;)*op=readGuide&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                //MyLinks
                "`".$siteConfig['site_url']."/index.php?page=mylinks(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=mylinks&(amp;)*op=showCategory&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/index.php?page=mylinks&(amp;)*op=showCategory&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=mylinks&(amp;)*op=addLink&(amp;)*id=([0-9]+)(['|"|#])`is",
                //MyPage
                "`".$siteConfig['site_url']."/index.php?page=mypage(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=mypage&(amp;)*op=openPage&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/index.php?page=mypage&(amp;)*op=openPage&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                        //Clean
                        "`".$siteConfig['site_url']."/index.php?page=mypage&(amp;)*op=openPage&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                        "`".$siteConfig['
site_url']."/index.php?page=mypage&(amp;)*op=openPage&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)&(amp;)*pg=([0-9]+)(['|"|#])`is",
                //News
                "`".$siteConfig['site_url']."/index.php?page=news(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=news&(amp;)*pg=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=news&(amp;)*op=readNews&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                        //Clean
                        "`".$siteConfig['
site_url']."/index.php?page=news&(amp;)*op=readNews&(amp;)*id=([0-9]+)&(amp;)*title=([^&#'"_]+)(['|"|#])`is",
                //Newsletter
                "`".$siteConfig['site_url']."/index.php?page=newsletter(['|"|#])`is",
                //Partners
                "`".$siteConfig['site_url']."/index.php?page=partners(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=partners&(amp;)*op=openPartnerLink&(amp;)*id=([0-9]+)(['|"|#])`is",
                //Pdf
                "`".$siteConfig['site_url']."/pages/([^/]+)/pdf.php?id=([0-9]+)(['|"|#])`is",
                //Pvt Messages
                "`".$siteConfig['site_url']."/index.php?page=pvtmsg(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=pvtmsg&(amp;)*pg=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=pvtmsg&(amp;)*op=viewMessage&(amp;)*id=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=pvtmsg&(amp;)*op=newMessage(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=pvtmsg&(amp;)*op=newMessage&(amp;)*recipient=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=pvtmsg&(amp;)*op=reply&(amp;)*id=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=pvtmsg&(amp;)*op=delete&(amp;)*id=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/index.php?page=pvtmsg&(amp;)*op=delete&(amp;)*id=([0-9]+)&(amp;)*ok=true(['|"|#])`is",
                //RSS
                "`".$siteConfig['site_url']."/index.php?page=rss(['|"|#])`is",
                "`".$siteConfig['site_url']."/rss.php?page=([^&#'"_]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/rss.php?page=([^&#'"_]+)&(amp;)*(cat|topic)=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['site_url']."/rss.php?page=([^&#'"_]+)&(amp;)*(cat|topic)=([0-9]+)&(amp;)*items=([0-9]+)(['|"|#])`is",
                "`".$siteConfig['
site_url']."/rss.php?page=forum&(amp;)*forum=([0-9]+)(['|"|#])`is"