Allgemein

HTTP Requests ohne www an www. weiterleiten

Sa, 21.11.2009 - 16:27 -- admin

Anfragen ohne www sollten mit Apache weitergeleitet werden an www.*. Somit wird sichergestellt, dass Suchmaschine wie Google bestimmte URLs nicht doppelt auflisten; einmal mit www und einmal ohne www.
Der unten aufgeführte Code muss in einer .htaccess Datei abgelegt werden.

#rewrite hostname when request without www
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [r=301,L]

Kanal von der DBox per Batch ins Netzwerk streamen

Sa, 31.10.2009 - 11:58 -- admin

Beispiel.bat

@echo off
set boxip=192.168.0.201
 
echo Aktiviere SPTS
rem wget "http://%boxip%/control/system?setAViAExtPlayBack=spts" -O 1_stp.log -qping -n 5 localhost  > nul
ping -n 5 localhost  > nul
 
echo Schalte auf Arena Home
wget "http://%boxip%/control/zapto?44e0001339b" -O 1_zap.log -q
ping -n 5 localhost  > nul
 
wget "http://%boxip%/control/exec?Y_Live&url" -O 1_http.log -q
 
for /F %%i in (1_http.log) do set link=%%i
echo HTTP-Link %link%
 
 
echo Starte VLC

Allgemein abonnieren