normalerweise löse ich so etwas über .htaccess . das hat den vorteil, dass ich trotzdem über den Browser zugriff auch auf andere verzeichnise habe. Hilfreich ist so was, wenn zB gleich mehrere Versionen der Site in Arbeit sind, wie bei der Umstllung auf eine neue Version, etc.
Beispiel:
Redirect 301 /index.php http://www.citykino-steyr.at/j33/
<ifmodule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteBase /
##
# Ungebetene Gäste fern halten
#
# Diese bekommen einfach ein 403 - Zugriff verweigert
##
RewriteCond %{HTTP_REFERER} (www\.)?facebook\.com [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?bestcigarettes\.com [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?bestcigarettesshop\.com [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?bestdrugsworld\.com [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?buy-pharmacy-now\.info [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?cheap-24h\.com [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?cigarettesbuyer\.com [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?dogx\.us [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?drugs-24h\.com [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?healthandpills\.com [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?postclass\.com [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?pregnancy-weight-lose-diet\.blogspot\.com [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?roidsmall\.com [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?unikut\.org [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?uume\.us [NC,OR]
RewriteCond %{HTTP_REFERER} (www\.)?costadelsol-spain\.info [NC]
RewriteRule .* - [F]
</ifmodule>
Hier werden die Besucher von citykino-steyr.at automatisch auf citykino-steyr.at/j33 geschickt, in einem anderen verzeichnis kann ich jedoch bereits an einer neuen Ausgabe arbeiten.
grüsse
wrohr