<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="http://fbb.just4test.de/extern.php?action=feed&amp;tid=1163&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Informationen für CMS/made simple / .htaccess Rewrite Problem]]></title>
		<link>http://www.cmsmadesimple.de/forum/viewtopic.php?id=1163</link>
		<description><![CDATA[Die aktuellsten Beiträge in .htaccess Rewrite Problem.]]></description>
		<lastBuildDate>Wed, 17 Aug 2011 04:54:12 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[.htaccess Rewrite Problem]]></title>
			<link>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=10076#p10076</link>
			<description><![CDATA[<p>Ich habe folgende Konstellation welche nicht functioniert:</p><p>- im Root eine CMSMS Installation mit mod_rewrite<br />- Unterordner mysqldumper</p><p>Sobald ich dem mysqldumper einen Verzeichnisschutz hinzufüge, ist der Ordner nicht mehr aufrufbar (not found). Entferne ich das .htaccess im Root oder im mysqldumper Ordner, ist der MysqlDumper wieder zugänglich. </p><p>Hat einer eine Idee warum?</p><p>.htaccess im root:</p><div class="codebox"><pre class="vscroll"><code>    # ReWrite Regeln für hyrarchische Seitenstruktur
  # CMSms
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# RewriteRule ^(.+).htm$ index.php?page=$1 [QSA]


# Beginn CMSMS Security Einstellungen.
# Directory Browsing abschalten
Options -Indexes


# Zugriff auf config.php verbieten.

&lt;Files ~ &quot;config.php|CHANGELOG.txt&quot;&gt;
    order allow,deny
    deny from all
    &lt;/Files&gt;

    &lt;Files ~ &quot;tinyconfig.php&quot;&gt;
    order allow,deny
    allow from all
    &lt;/Files&gt;

# No sense advertising what we are running
ServerSignature Off

# Spambots nach User_agent aussperren
RewriteCond %{HTTP_USER_AGENT} ^.*Whacker.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailCollector [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*FileHound.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*TurnitinBot.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*JoBo.*$ [OR]
RewriteCond %{HTTP_USER_AGENT} ^.*adressendeutschland.*$
RewriteRule ^.* - [F]

# 1. unterbindet, das fremde Seiten geladen werden
RewriteCond %{QUERY_STRING} ^(.*)=http://(.*) [OR]

# 2. blockiert libwww (Ausgangspunkt für diverse Hackversuche)
RewriteCond %{HTTP_USER_AGENT} ^libwww [OR]

# Blockiert Skripte, die versuchen, base64 encodierten Unsinn via URL zu versenden
RewriteCond %{QUERY_STRING} base64_encode.*\(.*\) [OR]

# Blockiert Skripte, die einen a ********** Tag in der URL enthalten
RewriteCond %{QUERY_STRING} (\&lt;|%3C).*script.*(\&gt;|%3E) [NC,OR]

# Blockiert Skripte, die versuchen, PHP GLOBALS Variablen via URL zu verändern
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]


# PageSpeed Optimierungen

# Disable ETags
Header unset ETag
FileEtag None


&lt;IfModule mod_deflate.c&gt;
# Apache Modul zum Komprimieren der Text-Dateien (CSS/HTML/JS)
AddOutputFilterByType DEFLATE text/html text/css text/plain text/xml image/gif image/jpeg image/png application/x-javascript application/json
SetOutputFilter DEFLATE
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html
SetEnvIfNoCase Request_URI .(?:gif|jpe?g|png|ico|flv|swf|mpg|mpeg)$ no-gzip dont-vary
Header append Vary Accept-Encoding
&lt;/IfModule&gt;

# Apache Modul fürs Cachen von Dateien
&lt;IfModule mod_expires.c&gt;
ExpiresActive On
ExpiresByType text/html &quot;access plus 2 hours&quot;
ExpiresByType text/css &quot;access plus 2 hours&quot;
ExpiresByType text/js &quot;access plus 2 hours&quot;
ExpiresByType text/x-js &quot;access plus 2 hours&quot;
ExpiresByType text/javascript &quot;access plus 2 hours&quot;
ExpiresByType text/xml &quot;access plus 2 hours&quot;
ExpiresByType image/gif &quot;access plus 1 years&quot;
ExpiresByType image/jpg &quot;access plus 1 years&quot;
ExpiresByType image/jpeg &quot;access plus 1 years&quot;
ExpiresByType image/png &quot;access plus 1 years&quot;
ExpiresByType image/ico &quot;access plus 1 years&quot;
ExpiresByType audio/mpeg &quot;access plus 1 years&quot;
ExpiresByType application/javascript &quot;access plus 2 hours&quot;
ExpiresByType text/js &quot;access plus 2 hours&quot;
ExpiresByType application/x-javascript &quot;access plus 2 hours&quot;
ExpiresByType text/x-js &quot;access plus 2 hours&quot;
ExpiresByType application/pdf &quot;access plus 2 hours&quot;
ExpiresByType application/xml &quot;modification plus 2 hours&quot;
ExpiresByType application/x-shockwave-flash &quot;access plus 2 hours&quot;
&lt;/IfModule&gt;

&lt;IfModule mod_headers.c&gt;
&lt;FilesMatch &quot;\.(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$&quot;&gt;
Header set Cache-Control &quot;max-age=31536000, public&quot;
&lt;/FilesMatch&gt;

&lt;FilesMatch &quot;\.(js|xml|txt)$&quot;&gt;
Header set Cache-Control &quot;max-age=2678400, private&quot;
&lt;/FilesMatch&gt;
&lt;/IfModule&gt;

&lt;FilesMatch &quot;backup-.*(?=-files)-files-[\d_]+\.zip|backup-.*(?=-db-)-db-[\w+-[\d_]+\.gz&quot;&gt;
order deny,allow
deny  from all
&lt;/FilesMatch&gt;</code></pre></div><p>im mysqldumper</p><div class="codebox"><pre><code>&lt;IfModule mod_rewrite.c&gt;
RewriteEngine off
&lt;/IfModule&gt;
AuthName &quot;MySQLDumper&quot;
AuthType Basic
AuthUserFile &quot;/home/name/public_html/mysqldumper/.htpasswd&quot;
require valid-user</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (nockenfell)]]></author>
			<pubDate>Wed, 17 Aug 2011 04:54:12 +0000</pubDate>
			<guid>http://www.cmsmadesimple.de/forum/viewtopic.php?pid=10076#p10076</guid>
		</item>
	</channel>
</rss>
