ich wollte eine 301 Weiterleitung auf eine andere Domain machen, habe die jeweils 2 Configure Dateien in includes und admin/includes abgeändert, auch verweist die Domain auf dem Server auf den entsprechenden Ordner, aber irgendwie funktioniert dies nicht.
Ich habe lediglich die htaccess um eine Domain erweitert, ansonsten alles so belassen.
Meine neue htaccess shaut so aus:
Code: Alles auswählen
# $Id: .htaccess 874 2009-08-29 22:38:43Z joerg $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
#<Directory "/usr/local/apache/htdocs">
# AllowOverride Options
#</Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)
# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>
# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1
#</IfModule>
#-- Call time pass reference error ?!
#php_flag allow_call_time_pass_reference On
#-----------------------------------------
#- SEO Hartmut König
#-----------------------------------------
#-- ! Comment this line, if you get an ERROR 500 !
#Options +FollowSymlinks
# http://httpd.apache.org/docs/misc/rewriteguide.html
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.xn--mbel4ever-07a.de$ [NC]
RewriteRule ^(.*) http://www.moebelmitnahmemarkt.de/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^xn--mbel4ever-07a.de$ [NC]
RewriteRule ^(.*) http://www.moebelmitnahmemarkt.de/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.xn--mbel4ever-07a.com$ [NC]
RewriteRule ^(.*) http://www.moebelmitnahmemarkt.de/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^xn--mbel4ever-07a.com$ [NC]
RewriteRule ^(.*) http://www.moebelmitnahmemarkt.de/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.moebel4ever.com$ [NC]
RewriteRule ^(.*) http://www.moebelmitnahmemarkt.de/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^moebel4ever.com$ [NC]
RewriteRule ^(.*) http://www.moebelmitnahmemarkt.de/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^moebel4ever.de$ [NC]
RewriteRule ^(.*) http://www.moebelmitnahmemarkt.de/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^moebelmitnahmemarkt.de$ [NC]
RewriteRule ^(.*) http://www.moebelmitnahmemarkt.de/$1 [L,R=301]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.moebelmitnahmemarkt.de/ [R=301,L]
# SET THE FOLLOWING LINE, IF YOUR SHOP RUNS IN AN SUBFOLDER. ALSO IF YOU GET AN ERROR 500 (Internal Server Error) ON SOME SYSTEMS
# EXAMPLE: If your shop is located at www.example.com/shop set the following line: "RewriteBase /shop"
# Falls der Shop in einem Unterordner laufen soll, muss die folgende Zeile auskommentiert werden. Läuft der Shop unter
# www.example.com/shop muss die folgende Zeile "RewriteBase /shop" lauten. (Kein "/" am Ende!)
#RewriteBase /
#-- Sitemap
RewriteRule ^sitemap(.*)\.html$ shop_content.php?coID=8 [qsappend,L]
##-- Kategorien
RewriteCond %{REQUEST_URI} (.*):::([_0-9]+):([_0-9]+)\.html$
RewriteRule (.*):::([_0-9]+):([_0-9]+)\.html$ index.php?cPath=$2&page=$3 [qsappend,L]
RewriteCond %{REQUEST_URI} (.*):::([_0-9]+)\.html$
RewriteRule (.*):::([_0-9]+)\.html$ index.php?cPath=$2 [qsappend,L]
##-- Produkte
RewriteRule (.*)::(.+)\.html$ product_info.php?products_id=$2 [qsappend,L]
##-- Live-Shopping
RewriteRule (.*):\.\.:(.+)\.html$ live_shopping.php?products_id=$2 [qsappend,L]
##-- Content
RewriteRule (.*):_:([0-9]+)\.html$ shop_content.php?coID=$2 [qsappend,L]
##-- Manufacturers
RewriteCond %{REQUEST_URI} (.*):\.:([_0-9]+):([_0-9]+)\.html$
RewriteRule (.*):\.:([_0-9]+):([_0-9]+)\.html$ index.php?manufacturers_id=$2&page=$3 [qsappend,L]
RewriteCond %{REQUEST_URI} (.*):\.:([_0-9]+)\.html$
RewriteRule (.*):\.:([0-9]+)\.html$ index.php?manufacturers_id=$2 [qsappend,L]
#myliveshopping.de
RewriteRule myliveshopping\.xml$ myliveshopping.php [qsappend,L]
</IfModule>
##-- Fehler auf sitemap
ErrorDocument 400 /sitemap.html?error=400
ErrorDocument 401 /sitemap.html?error=401
ErrorDocument 402 /sitemap.html?error=402
ErrorDocument 403 /sitemap.html?error=403
ErrorDocument 404 /sitemap.html?error=404
ErrorDocument 500 /sitemap.html?error=500
Forbidden
You don't have permission to access / on this server.
Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
Die vorherige htaccess, also mit der alten Domain, schaut so aus:
Code: Alles auswählen
# $Id: .htaccess 874 2009-08-29 22:38:43Z joerg $
#
# This is used with Apache WebServers
#
# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
#<Directory "/usr/local/apache/htdocs">
# AllowOverride Options
#</Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)
# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers
<IfModule mod_setenvif.c>
<IfDefine SSL>
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</IfDefine>
</IfModule>
# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#<IfModule mod_php4.c>
# php_value session.use_trans_sid 0
# php_value register_globals 1
#</IfModule>
#-- Call time pass reference error ?!
#php_flag allow_call_time_pass_reference On
#-----------------------------------------
#- SEO Hartmut König
#-----------------------------------------
#-- ! Comment this line, if you get an ERROR 500 !
#Options +FollowSymlinks
# http://httpd.apache.org/docs/misc/rewriteguide.html
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.xn--mbel4ever-07a.de$ [NC]
RewriteRule ^(.*) http://www.moebel4ever.de/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^xn--mbel4ever-07a.de$ [NC]
RewriteRule ^(.*) http://www.moebel4ever.de/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.xn--mbel4ever-07a.com$ [NC]
RewriteRule ^(.*) http://www.moebel4ever.de/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^xn--mbel4ever-07a.com$ [NC]
RewriteRule ^(.*) http://www.moebel4ever.de$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^www.moebel4ever.com$ [NC]
RewriteRule ^(.*) http://www.moebel4ever.de/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^moebel4ever.com$ [NC]
RewriteRule ^(.*) http://www.moebel4ever.de/$1 [L,R=301]
RewriteCond %{HTTP_HOST} ^moebel4ever.de$ [NC]
RewriteRule ^(.*) http://www.moebel4ever.de/$1 [L,R=301]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.moebel4ever.de/ [R=301,L]
# SET THE FOLLOWING LINE, IF YOUR SHOP RUNS IN AN SUBFOLDER. ALSO IF YOU GET AN ERROR 500 (Internal Server Error) ON SOME SYSTEMS
# EXAMPLE: If your shop is located at www.example.com/shop set the following line: "RewriteBase /shop"
# Falls der Shop in einem Unterordner laufen soll, muss die folgende Zeile auskommentiert werden. Läuft der Shop unter
# www.example.com/shop muss die folgende Zeile "RewriteBase /shop" lauten. (Kein "/" am Ende!)
#RewriteBase /
#-- Sitemap
RewriteRule ^sitemap(.*)\.html$ shop_content.php?coID=8 [qsappend,L]
##-- Kategorien
RewriteCond %{REQUEST_URI} (.*):::([_0-9]+):([_0-9]+)\.html$
RewriteRule (.*):::([_0-9]+):([_0-9]+)\.html$ index.php?cPath=$2&page=$3 [qsappend,L]
RewriteCond %{REQUEST_URI} (.*):::([_0-9]+)\.html$
RewriteRule (.*):::([_0-9]+)\.html$ index.php?cPath=$2 [qsappend,L]
##-- Produkte
RewriteRule (.*)::(.+)\.html$ product_info.php?products_id=$2 [qsappend,L]
##-- Live-Shopping
RewriteRule (.*):\.\.:(.+)\.html$ live_shopping.php?products_id=$2 [qsappend,L]
##-- Content
RewriteRule (.*):_:([0-9]+)\.html$ shop_content.php?coID=$2 [qsappend,L]
##-- Manufacturers
RewriteCond %{REQUEST_URI} (.*):\.:([_0-9]+):([_0-9]+)\.html$
RewriteRule (.*):\.:([_0-9]+):([_0-9]+)\.html$ index.php?manufacturers_id=$2&page=$3 [qsappend,L]
RewriteCond %{REQUEST_URI} (.*):\.:([_0-9]+)\.html$
RewriteRule (.*):\.:([0-9]+)\.html$ index.php?manufacturers_id=$2 [qsappend,L]
#myliveshopping.de
RewriteRule myliveshopping\.xml$ myliveshopping.php [qsappend,L]
</IfModule>
##-- Fehler auf sitemap
ErrorDocument 400 /sitemap.html?error=400
ErrorDocument 401 /sitemap.html?error=401
ErrorDocument 402 /sitemap.html?error=402
ErrorDocument 403 /sitemap.html?error=403
ErrorDocument 404 /sitemap.html?error=404
ErrorDocument 500 /sitemap.html?error=500
Was habe ich nur falsch gemacht?
Liebe Grüße Olaf