Welcome to the MetaMod and Chameleon Support Forums.

Before posting, please check out the FAQs.

helpme

 

Need extra help with your Joomla site? Consider paid Joomla support by the developer of Chameleon and MetaMod.

 

Blank Screen - sh404sef + joomfish

Blank Screen - sh404sef + joomfish

Hi, I am at the debugging phase of a major update on my guitar lesson website. My old website is still the one accessible for the public, and the one I installed all the metamodpro and metatemplatepro is restricted to admin.

What I did is that I made a backup of my old site and installed it in a second folder named "public_html2". My plan is to do a backup of my new site currently installed in public_html2 when everything is ready and restore the new site in the usual public_html directory.

For now i am using the url: http://www.guitarweb3.com/ for production.
My online site is, and will remain once the update is completed to: http://www.quebecguitare.com/

I think this may cause issue at this level for the mod rewrite, but I am not too knowledgeable about htaccess issues.

Nevertheless, let me explain my problem.

I have several metamodpro that have been assigned on a total of 6 templates. I do not use metatemplatepro at this point of the production. I only use a template switcher on the frontend (mod_templatechooser) or I switch the template using joomla backend. There are no rules active in metatemplatepro at this point.

The only command I am using to enable metamods according to the template goes like this, 1 or more command at a time:

Code:


$mainframe =& JFactory::getApplication();
$template =& $mainframe->getTemplate();
if ($template == "electric_standard_jan2011") return "322";

/*$mainframe =& JFactory::getApplication();
$template =& $mainframe->getTemplate();
if ($template == "femmes_jan2011") return "322";*/

$mainframe =& JFactory::getApplication();
$template =& $mainframe->getTemplate();
if ($template == "flamencofusion_internationnal_jan2011") return "322";

$mainframe =& JFactory::getApplication();
$template =& $mainframe->getTemplate();
if ($template == "leadguitar_internationnal_jan2011") return "322";

$mainframe =& JFactory::getApplication();
$template =& $mainframe->getTemplate();
if ($template == "metal_jan2011") return "322";

/* $mainframe =& JFactory::getApplication();
$template =& $mainframe->getTemplate();
if ($template == "qg_sept2010_3") return "322"; */

/* Bypass qg_sep2010_3 */
/* Bypass Femmes_*/

The components that might conflict according to previous threads are:

Joom!Fish 2.0.4 (Fr - Eng)
sh404sef 2.1.9.787     update: 2010-12-13

Whenever I unable sh404sef I get a blank page on any of menu link except the home page.

I have noticed that the same problem wont occur if sh404sef is set on mod rewrite without .htaccess. But this is a very unstable mode and it mess up with SEF.

Here is a copy of my htaccess file (as I said I dont know much about mod rewrite so the problem might be there since I am now working temporarily with the url http://www.guitarweb3.com/ redirected to the public_html2 which is the folder I work with before launching the site). Mode rewrite in joomla core is disabled and everything is working fine with that htaccess on my old online website, so I figure metamodpro would be causing the conflict.

Code:

##

# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################



##########BEGIN PHPCORE FILE

# Lets deny some users
# deny from xx.xxx.xxx.xxx

# Use Options
Options +FollowSymLinks
Options -Indexes

#  mod_rewrite in use
RewriteEngine On

#  Uncomment following line if your webserver’s URL
#  is not directly related to physical file paths.
#RewriteBase /

RewriteCond %{HTTP_HOST} ^guitarweb3\.com
RewriteRule ^(.*)$ http://www.guitarweb3.com/$1 [R=permanent,L]

#Redirect moved pages
Redirect 301 /old-link.html http://www.guitarweb3.com/new-link.html

#Rewrites
RedirectMatch    ^/somedir(/)?$   http://www.guitarweb3.com/index.php?option=com_somecomponent

ServerSignature Off
RewriteCond %{REQUEST_METHOD}  ^(HEAD|TRACE|DELETE|TRACK) [NC,OR]
RewriteCond %{THE_REQUEST}     ^.*(\\r|\\n|%0A|%0D).* [NC,OR]

RewriteCond %{HTTP_REFERER}    ^(.*)(<|>|’|%0A|%0D|%27|%3C|%3E|%00).* [NC,OR]
RewriteCond %{HTTP_COOKIE}     ^.*(<|>|’|%0A|%0D|%27|%3C|%3E|%00).* [NC,OR]
RewriteCond %{REQUEST_URI}     ^/(,|;|:|<|>|”>|”<|/|\\\.\.\\).{0,9999}.* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^(java|curl|wget).* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*(winhttp|HTTrack|clshttp|archiver|loader|email|harvest|extract|grab|miner).* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*(libwww-perl|curl|wget|python|nikto|scan).* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*(<|>|’|%0A|%0D|%27|%3C|%3E|%00).* [NC,OR]

RewriteCond %{QUERY_STRING}    ^.*(;|<|>|’|”|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark).* [NC,OR]
RewriteCond %{QUERY_STRING}    ^.*(localhost|loopback|127\.0\.0\.1).* [NC,OR]
RewriteCond %{QUERY_STRING}    ^.*\.[A-Za-z0-9].* [NC,OR]
RewriteCond %{QUERY_STRING}    ^.*(<|>|’|%0A|%0D|%27|%3C|%3E|%00).* [NC]


########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
## Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
########### End - Rewrite rules to block out some common exploits

########## Begin - Joomla! core SEF Section#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
########### End - Joomla! core SEF Section

########## Block bad user agents
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto: This e-mail address is being protected from spambots. You need JavaScript enabled to view it [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [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} ^GetRight [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,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} ^InterGET [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [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} ^RealDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [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} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* - [F,L]


#########END PHPCORE FILE


RewriteCond %{HTTP_HOST} ^alexandretherrien.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.alexandretherrien.com$
RewriteRule ^(.*)$ "http\:\/\/www\.guitarweb3\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^coursguitare.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www.coursguitare.ca$
RewriteRule ^(.*)$ "http\:\/\/www\.guitarweb3\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^docteurguitare.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www.docteurguitare.ca$
RewriteRule ^(.*)$ "http\:\/\/www\.guitarweb3\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^guitarweb3.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www.guitarweb3.ca$
RewriteRule ^(.*)$ "http\:\/\/www\.guitarweb3\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^guitarweb3.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.guitarweb3.com$
RewriteRule ^(.*)$ "http\:\/\/www\.guitarweb3\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^quebecguitar.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.quebecguitar.com$
RewriteRule ^(.*)$ "http\:\/\/www\.guitarweb3\.com" [R=301,L]

I have set my general configuration on maximum error reporting. The only error I get is within metamods that I use AllVideo plugins for youtube video, and the error seems related to another component that I use which is RS!formPro. I don't think this is relevant but here is the error:

Code:


Notice: Constant _RSFORM_BACKEND_SETTINGS_SAVED already defined in /home/guitar88/public_html2/components/com_rsform/languages/french.php on line 380

I have many system plugins and component installed on my site besides those.   I have no clue what could be conflicting besides sh404sef and joomfish.

I can provide access to FTP access and backend if needed. Just let me know and I will email to you or else...

Thank you.
Alex

atherrien
Modder Extraordinaire
ranks
useravatar
Offline
140 Posts
Administrator has disabled public posting

Re: Blank Screen - sh404sef + joomfish

I notice some of the lines of my post are exceeding the text frame, just let me know if you want me to repost without the code brackets if you are not able to read well.

Alex

atherrien
Modder Extraordinaire
ranks
useravatar
Offline
140 Posts
Administrator has disabled public posting

Re: Blank Screen - sh404sef + joomfish

just 1 thing to try quickly: can you increase the amount of PHP memory you are using to see if that makes a difference?

A quick note on the PHP:

You don't need to repeat all $mainframe / $template lines. Just use them once at the start of the rule.

e.g.

$mainframe =& JFactory::getApplication();
$template =& $mainframe->getTemplate();
if ($template == "electric_standard_jan2011") return "322";
if ($template == "femmes_jan2011") return "322";
// etc..

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Re: Blank Screen - sh404sef + joomfish

I have contacted my hosting and my php memory limit is already at the maximum which is 64/64MB possible.

Here's my phpinfo: http://www.quebecguitare.com/phpinfo.php

Let me know what you think. Do you want access to the joomla backend or else?

Thanks, Alex.

atherrien
Modder Extraordinaire
ranks
useravatar
Offline
140 Posts
Administrator has disabled public posting

Re: Blank Screen - sh404sef + joomfish

Hi Alex,

I would think 64M should be fine. It looks more likely that it's a system plugin ordering issue.

I'll be happy to log into your site and look at it for you - can you please e-mail me details for a superadmin account so I can look at the backend?

Cheers,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Re: Blank Screen - sh404sef + joomfish

Thanks Stephen, you should have the info for your id in your email box.

Cheers,
Alex

atherrien
Modder Extraordinaire
ranks
useravatar
Offline
140 Posts
Administrator has disabled public posting

Re: Blank Screen - sh404sef + joomfish

Stephen apoligies, i made the account on the wrong site. I am sending you once again the ID but for the offline site.

atherrien
Modder Extraordinaire
ranks
useravatar
Offline
140 Posts
Administrator has disabled public posting

Re: Blank Screen - sh404sef + joomfish

Here's the url in case the automated email is not pointing at the correct one: http://guitarweb3.com/administrator/

atherrien
Modder Extraordinaire
ranks
useravatar
Offline
140 Posts
Administrator has disabled public posting

Re: Blank Screen - sh404sef + joomfish

Hi,

I've just had a good look around the site, and played with the order of plugins etc.

I temporarily disabled the MetaMod Pro and MetaTemplate plugins to see if this would make any difference, and found that even with these turned off, you are having problems on the site with sh404SEF and JoomFish.

Sorry to say, this is simply not a MetaMod or MetaTemplate problem (and when I re-read your e-mail I saw that you never claimed that it was!).

When researching the issue I see that there are lots of other people who have had similar problems with sh404SEF and JoomFish.

As such, I am afraid I just can't help you with it. I also turned off the Advanced JoomFish SEF plugin (from this site) just in case that was part of the problem, but it doesn't seem to be. I cleared the sh404SEF cache and still no good. I tried disabling sh404SEF and just using normal Joomla SEF, and even that seemed to have the same problem with the blank screen. So I am sure that there's something deeper going on.

Sorry, I really can't help further with this as it's not related to any of my products. Please understand that there are limits on my time sad

Best regards,
Stephen

Stephen Brandon
MetaMod / Chameleon developer
If you use MetaMod or Chameleon, please post a rating and a review at the Joomla! Extensions Directory: Chameleon | MetaMod

metamodguy
useravatar
Offline
3312 Posts
User info in posts
Administrator has disabled public posting

Re: Blank Screen - sh404sef + joomfish

Hi Stephen, I've reversed engineered my whole new site until the SEF worked properly.

It seems that my .htaccess file was not configured properly. It had something to do with the fact that the live_site in configuration.php was set with "www" before the url, but I was testing the site without the "www". It might have caused the component sh404sef to glitch as it was referring to the url under live_site in the configuration.php file in its global configuration.

Prior to that I've upgraded both component sh404sef to version 2.1.9.787, as well as joomfish to the latest V2.1.3.

I've red that a lot of users have had issues with both those components after updating, so far I don't have any issue.

The only problem I had was that the images url have been somehow messed up and images weren't showing outside the homepage. I could fix that problem by enabling the system plugin under joomla extension/plugins "System - SEF".

Moreover I have activated the option "enable template switcher" under sh404sef/configuration/seo configuration/mobile configuration. I don't know weather or not it's gonna conflict with metatemplatepro. Please comment on that if there are known issue over that.

I still have more testing to do.

Here is my actual .htaccess file running smootly under the url "http://www.guitarweb3.com/":

##
# @version $Id: htaccess.txt 10492 2008-07-02 06:38:28Z ircmaxell $
# @package Joomla
# @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

#####################################################
#  READ THIS COMPLETELY IF YOU CHOOSE TO USE THIS FILE
#
# The line just below this section: 'Options +FollowSymLinks' may cause problems
# with some server configurations.  It is required for use of mod_rewrite, but may already
# be set by your server administrator in a way that dissallows changing it in
# your .htaccess file.  If using it causes your server to error out, comment it out (add # to
# beginning of line), reload your site in your browser and test your sef url's.  If they work,
# it has been set by your server administrator and you do not need it set here.
#
#####################################################



##########BEGIN PHPCORE FILE

# Lets deny some users
# deny from xx.xxx.xxx.xxx

# Use Options
Options +FollowSymLinks
Options -Indexes

#  mod_rewrite in use
RewriteEngine On

#  Uncomment following line if your webserver’s URL
#  is not directly related to physical file paths.
#RewriteBase /

RewriteCond %{HTTP_HOST} ^quebecguitare\.com
RewriteRule ^(.*)$ http://www.quebecguitare.com/$1 [R=permanent,L]

#Redirect moved pages
Redirect 301 /old-link.html http://www.quebecguitare.com/new-link.html

#Rewrites
RedirectMatch    ^/somedir(/)?$   http://www.quebecguitare.com/index.php? … ecomponent

ServerSignature Off
RewriteCond %{REQUEST_METHOD}  ^(HEAD|TRACE|DELETE|TRACK) [NC,OR]
RewriteCond %{THE_REQUEST}     ^.*(\\r|\\n|%0A|%0D).* [NC,OR]

RewriteCond %{HTTP_REFERER}    ^(.*)(<|>|’|%0A|%0D|%27|%3C|%3E|%00).* [NC,OR]
RewriteCond %{HTTP_COOKIE}     ^.*(<|>|’|%0A|%0D|%27|%3C|%3E|%00).* [NC,OR]
RewriteCond %{REQUEST_URI}     ^/(,|;|neutral<|>|”>|”<|/|\\\.\.\\).{0,9999}.* [NC,OR]

RewriteCond %{HTTP_USER_AGENT} ^$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^(java|curl|wget).* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*(winhttp|HTTrack|clshttp|archiver|loader|email|harvest|extract|grab|miner).* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*(libwww-perl|curl|wget|python|nikto|scan).* [NC,OR]
RewriteCond %{HTTP_USER_AGENT} ^.*(<|>|’|%0A|%0D|%27|%3C|%3E|%00).* [NC,OR]

RewriteCond %{QUERY_STRING}    ^.*(;|<|>|’|”|\)|%0A|%0D|%22|%27|%3C|%3E|%00).*(/\*|union|select|insert|cast|set|declare|drop|update|md5|benchmark).* [NC,OR]
RewriteCond %{QUERY_STRING}    ^.*(localhost|loopback|127\.0\.0\.1).* [NC,OR]
RewriteCond %{QUERY_STRING}    ^.*\.[A-Za-z0-9].* [NC,OR]
RewriteCond %{QUERY_STRING}    ^.*(<|>|’|%0A|%0D|%27|%3C|%3E|%00).* [NC]


########## Begin - Rewrite rules to block out some common exploits
## If you experience problems on your site block out the operations listed below
## This attempts to block the most common type of exploit `attempts` to Joomla!
## Block out any script trying to set a mosConfig value through the URL
RewriteCond %{QUERY_STRING} mosConfig_[a-zA-Z_]{1,21}(=|\%3D) [OR]
# Block out any script trying to base64_encode crap to send via URL
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]
# Block out any script that includes a <script> tag in URL
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
# Block out any script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
# Block out any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
# Send all blocked request to homepage with 403 Forbidden error!
RewriteRule ^(.*)$ index.php [F,L]
########### End - Rewrite rules to block out some common exploits

########## Begin - Joomla! core SEF Section#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$  [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
########### End - Joomla! core SEF Section

########## Block bad user agents
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto: This e-mail address is being protected from spambots. You need JavaScript enabled to view it [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [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} ^GetRight [OR]
RewriteCond %{HTTP_USER_AGENT} ^GetWeb! [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go!Zilla [OR]
RewriteCond %{HTTP_USER_AGENT} ^Go-Ahead-Got-It [OR]
RewriteCond %{HTTP_USER_AGENT} ^GrabNet [OR]
RewriteCond %{HTTP_USER_AGENT} ^Grafula [OR]
RewriteCond %{HTTP_USER_AGENT} ^HMView [OR]
RewriteCond %{HTTP_USER_AGENT} HTTrack [NC,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} ^InterGET [OR]
RewriteCond %{HTTP_USER_AGENT} ^Internet\ Ninja [OR]
RewriteCond %{HTTP_USER_AGENT} ^JetCar [OR]
RewriteCond %{HTTP_USER_AGENT} ^JOC\ Web\ Spider [OR]
RewriteCond %{HTTP_USER_AGENT} ^larbin [OR]
RewriteCond %{HTTP_USER_AGENT} ^LeechFTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mass\ Downloader [OR]
RewriteCond %{HTTP_USER_AGENT} ^MIDown\ tool [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mister\ PiX [OR]
RewriteCond %{HTTP_USER_AGENT} ^Navroad [OR]
RewriteCond %{HTTP_USER_AGENT} ^NearSite [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetAnts [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Net\ Vampire [OR]
RewriteCond %{HTTP_USER_AGENT} ^NetZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Octopus [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Explorer [OR]
RewriteCond %{HTTP_USER_AGENT} ^Offline\ Navigator [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} ^RealDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^ReGet [OR]
RewriteCond %{HTTP_USER_AGENT} ^SiteSnagger [OR]
RewriteCond %{HTTP_USER_AGENT} ^SmartDownload [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperBot [OR]
RewriteCond %{HTTP_USER_AGENT} ^SuperHTTP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Surfbot [OR]
RewriteCond %{HTTP_USER_AGENT} ^tAkeOut [OR]
RewriteCond %{HTTP_USER_AGENT} ^Teleport\ Pro [OR]
RewriteCond %{HTTP_USER_AGENT} ^VoidEYE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Image\ Collector [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [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} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule ^.* - [F,L]


#########END PHPCORE FILE


RewriteCond %{HTTP_HOST} ^translationturkey.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.translationturkey.com$
RewriteRule ^(.*)$ "http\:\/\/www\.translationturkey\.com\/public_html\/_duy_transturkey" [R=301,L]

AuthUserFile "/home/queb7736/.htpasswds/public_html/passwd"
AuthName "/home/queb7736/public_html/__online_maps_qg2009/test_joanie"
RewriteCond %{HTTP_HOST} ^alexandretherrien.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.alexandretherrien.com$
RewriteRule ^(.*)$ "http\:\/\/www\.quebecguitare\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^coursguitare.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www.coursguitare.ca$
RewriteRule ^(.*)$ "http\:\/\/www\.quebecguitare\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^docteurguitare.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www.docteurguitare.ca$
RewriteRule ^(.*)$ "http\:\/\/www\.quebecguitare\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^quebecguitare.ca$ [OR]
RewriteCond %{HTTP_HOST} ^www.quebecguitare.ca$
RewriteRule ^(.*)$ "http\:\/\/www\.quebecguitare\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^quebecguitare.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.quebecguitare.com$
RewriteRule ^(.*)$ "http\:\/\/www\.quebecguitare\.com" [R=301,L]

RewriteCond %{HTTP_HOST} ^quebecguitar.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.quebecguitar.com$
RewriteRule ^(.*)$ "http\:\/\/www\.quebecguitare\.com" [R=301,L]


-END OF FILE


Cheers.
Alex.

atherrien
Modder Extraordinaire
ranks
useravatar
Offline
140 Posts
Administrator has disabled public posting

Board Info

Board Stats:
 
Total Topics:
1667
Total Polls:
6
Total Posts:
5909
Posts this week:
1
User Info:
 
Total Users:
10113
Newest User:
michael2066
Members Online:
1
Guests Online:
288

Online: 
michael2066

Forum Legend:

 Topic
 New
 Locked
 Sticky
 Active
 New/Active
 New/Locked
 New Sticky
 Locked/Active
 Active/Sticky
 Sticky/Locked
 Sticky/Active/Locked