Vhost mit.htacces

Alles, was den Apache betrifft, kann hier besprochen werden.

Vhost mit.htacces

Postby stevchen » 25. March 2011 10:18

Guten Tag,

ich habe ein problem, immer redirection zu 127.0.0.1:80.

im meine file c:/windows/system32/drivers/etc/host
....
127.0.0.1 www.monsite.local
....

im meine file http.conf, letzte linie:
NameVirtualHost *:900

<VirtualHost *:900>
DocumentRoot C:/wamp/www/
ServerName localhost
ErrorLog "c:/wamp/logs/vhost_error.log"
TransferLog "c:/wamp/logs/vhost_Transfer.log"
</VirtualHost>

<VirtualHost *:900>
DocumentRoot "c:/wamp/www/Logikflat/"
ServerName monsite.local
ServerAlias www.monsite.local
ErrorLog "c:/wamp/logs/monsite_error.log"
TransferLog "c:/wamp/logs/monsite_Transfer.log"
</VirtualHost>

und meine file .htacces:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /

#RewriteCond %{HTTP_HOST} !^www.monsite.local$ [NC]
RewriteRule ^(.*)$ http://www.monsite.local/$1 [L,R=301]

RewriteRule ^location-vacances-locations-saisonnieres-eco.php$ location-vacances-ecologique.php [L,R=301]
RewriteRule ^locations-vacances-saisonnieres-index.php$ http://www.monsite.local [L,R=301]

RewriteRule ^index.php$ http://www.monsite.local [L,R=301]

danke im voraus,
Stev
stevchen
 
Posts: 1
Joined: 25. March 2011 10:14

Return to Apache

Who is online

Users browsing this forum: No registered users and 5 guests