Nun muss die alte Feed-Adresse (ALT):
http://www.daec-duesseldorf.de/index.ph ... eturnid=15
auf die neue (NEU):
http://www.daec-duesseldorf.de/index.ph ... eturnid=15
umgeleitet werden. Da "Redirect 301" nicht funktionieren kann, muss ich es mit mod_rewrite machen. Da es nur eine Adresse ist, dachte ich, dass es einfach so geht:
Code: Select all
RewriteEngine On
RewriteRule ^index\.php?mact=News,cntnt01,rss&cntnt01showtemplate=false&cntnt01category=Allgemein%2CWebsite%2CVeranstaltung&cntnt01number=20&cntnt01returnid=15$ index.php?mact=CGFeedMaker,cntnt01,default,0&cntnt01feed=aktuelles&cntnt01showtemplate=false&cntnt01returnid=15
BTW: mod_rewrite funktioniert bei mir mit normalen Seiten (Ich habe aus bestimmten Gründen: assume_mod_rewrite="true", use_hierachy="false" eingestellt) ohne Probleme.
Meine komplette .htaccess (ohne obiges Konstrukt):
Code: Select all
Options -Indexes
<Files "config.php">
order allow,deny
deny from all
</Files>
ServerSignature Off
Options +FollowSymLinks
RewriteEngine On
# URL Filtering helps stop some hack attempts
#IF the URI contains a "http:"
RewriteCond %{QUERY_STRING} http\: [OR]
#OR if the URI contains a "["
RewriteCond %{QUERY_STRING} \[ [OR]
#OR if the URI contains a "]"
RewriteCond %{QUERY_STRING} \] [OR]
#OR if the URI contains a "<__script__>"
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
#OR script trying to set a PHP GLOBALS variable via URL
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
#OR any script trying to modify a _REQUEST variable via URL
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^.*$ - [F,L]
# END Filtering
# Hier wird "http//daec-duesseldorf.de nach http://www.daec-duesseldorf.de umgeschrieben (kein DC)
RewriteCond %{HTTP_HOST} ^daec-duesseldorf.de$ [NC]
RewriteRule ^(.*) http://www.daec-duesseldorf.de/$1 [L,R=301]
# CMSMS Rewriting
# Set assume mod_rewrite to true in config.php and clear CMSMS cache
RewriteCond %{REQUEST_FILENAME} !-f [NC]
RewriteCond %{REQUEST_FILENAME} !-d [NC]
RewriteRule ^(.+)$ index.php?page=$1 [QSA]
# END CMSMS
# 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]
# END Rewrite rules
Hani