Seite 1 von 1

htaccess 301 redirect von root/Ordner/ nach root/

Verfasst: 12.07.2005, 16:38
von didildoo
Hallo,
ich versuche nen Ordner mit 301 redirect auf die HOsturl umzuleiten
https://*.fotos.domain.com/fotos/*
nach
https://*.fotos.domain.com/*

das was ich benutze bringt nix, da ^fotos sich auf das was im
Ordner ist bezieht.

Code: Alles auswählen

RewriteRule ^fotos/(.*)$ /$1 [L,R=301]
unter andem hab ich das versucht:

Code: Alles auswählen

RewriteCond %{HTTP_HOST} ^fotos.domain.com/fotos/
RewriteRule (.*) http://[a-zA-Z0-9]+.fotos.domain.com/$1 [R=301,L] 
beides führt aber nicht zum gewünschten Erfolg

Verfasst:
von
SEO Consulting bei ABAKUS Internet Marketing
Erfahrung seit 2002
  • persönliche Betreuung
  • individuelle Beratung
  • kompetente Umsetzung

Jetzt anfragen: 0511 / 300325-0.


Verfasst: 12.07.2005, 22:51
von luigip
Versuch mal eine .htaccess im verzeichnis /fotos

RewriteEngine on
RewriteRule ^(.*) https://fotos.domain.com/$1 [R=301]