PDA

View Full Version : rewrite rule in htaccess file for exclude awstats dir



Kyra
12-27-2007, 07:11 AM
Hi lads,

We have to following issue.

Does anyone knows the rewrite rule to exclude the awstats dir for

CentOS 5
- Apache v2
- PHP v5.2.5
- MySQL 5.0

the following .htaccess is necessary for OPEn SEF on Joomla clients.
If anyone has any clue, share them :)

##
# @version $Id: htaccess.txt 1570 2005-12-29 05:53:33Z eddieajau $
# @package Joomla
# @copyright Copyright (C) 2005 Open Source Matters. All rights reserved.
# @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
# Joomla! is Free Software
##

Options +FollowSymLinks

#
# mod_rewrite in use
#

RewriteEngine On

##
## NOTE!
## When using multiple Joomla sites or other web applications in sub-folders,
## you must explicitly turn the RewriteEngine off or use the settings
## recommended for the application
##

########## Bitte in Ihrer .htaccess Datei einfügen, SEF Joomla Funktion muss aktiviert sein!
########## Hinter dieser Zeile einfügen -- > Begin - Joomla! core SEF Section

RewriteBase /

RewriteRule ^/awstats/ - [L]

RewriteRule ^projectinrichting/(.*)/ index.php?searchword=$1&option=com_search [QSA,NC]

# Uncomment following line if your webserver's URL
# is not directly related to physical file paths.
# Update YourJoomlaDirectory (just / for root)

# RewriteBase /YourJoomlaDirectory

#
# Rules
#

RewriteCond %{REQUEST_FILENAME} !\.(jpg|jpeg|gif|png|css|js|pl|txt)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php

# 404 error doorsturen

#ErrorDocument 404 /404.php