- Code: Alles auswählen
# COMMENT THE FOLLOWIN LINE, IF YOU GET AN ERROR 500 (Internal Server Error)
# Options +FollowSymlinks
RewriteEngine On
# 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.yourdomain.com/shop set the following line: "RewriteBase /shop"
RewriteBase /
# Don't use RewriteEngine in System-Subfolders
#RewriteRule ^admin|cache|download|export|images|import|inc|includes|media|lang|pub|templates|templates_c - [L]
# Onlie use Rewrite Engine, if Directory or File not exist
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) - [PT,L]
# Rule: Product Info
RewriteRule ^(.*)products\/(.+)\.html$ product_info.php?bluegatemapto=product&linkurl=$2 [qsappend,L]
# Rule: Content
RewriteRule ^(.*)content\/(.+)\.html$ shop_content.php?bluegatemapto=content&linkurl=$2 [qsappend,L]
# Rule: Category Listing
RewriteCond %{REQUEST_FILENAME} !\.html$
RewriteRule ^(.*)$ index.php?bluegatemapto=category&linkurl=$1 [qsappend,L]
# Route Error Pages to 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
Nun habe ich ein Unterverzeichnis umbenannt und Google wirft mir 404 Fehlermeldungen aus. Das nicht mehr existierende Unterverzeichnis "Textilien" möchte ich nun auf das neue Unterverzeichnis "Werbetextilien" umleiten.
VORHER: http://www.meineseite.de/products/de/Te ... esche.html
NACHHER: http://www.meineseite.de/products/de/We ... esche.html
Ich habe schon alles mögliche versucht auch mit RedirectMatch und auch folgendes:
- Code: Alles auswählen
RewriteCond %{REQUEST_URI} !^/Textilien/
RewriteRule ^(.*)$ http://www.meineseite.de/products/de/Werbetextilien/ [R=301]
Hat jemand eine Idee, wie ich den obigen Code verändern muss, damit das alte Unterverzeichnis auf das neue umgeleitet wird (inkl. alle sich im unterverzeichnis befindenden dateien)? Ich bin am verzweifeln!!!!!!
vielen dank im vorraus.


