Nic nie pomaga niestety, ciągle to samo się dzieje.
Albo przyczyna jest gdzieś indziej, bo, kiedy z głównego katalogu serwera /www - usuwam plik htaccess przy włącznym rewrite_module normalnie ładuje się strona startowa wampa, jednak wszystko, co leci przez pliki htaccess powoduje jakieś dziwne problemy. Może tutaj tkwi jakiś problem?
Aktualna konfiguracja:
Apache 2.2.21
PHP 5.3.9
MySQL 5.5.20
Aktualnie w zasadzie nie mam tego przekierowania, natomiast ciągle otrzymuję komunikat o "Połączenie zostało zresetowane". I dalej, działa mi także:
http://localhost/phpmyadmin/http://localhost/webgrind/W logach Apacha etc nic nie mam.
No i co lepsze, ping na 127.0.0.1 oraz na localhost działają poprawnie.
Plik hosts:
# Copyright (c) 1993-2009 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
# localhost name resolution is handled within DNS itself.
# 127.0.0.1 localhost
# ::1 localhost
127.0.0.1 localhost
Plik htaccess w głównym katalogu WampServera (przekierowuje na podkatalog)
RewriteEngine On
DirectoryIndex index.php
RewriteRule ^(.*)$ /wolneterminy.pl/$1
No i potem przykładowy plik htaccess strony w wybranym podkatalogu:
#<Files cron-5min.php>
# deny from all
#</Files>
#
#<Files cron-hourly.php>
# deny from all
#</Files>
Options -Indexes
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
#pliki graficzne, i inne
RewriteRule ^img\/([0-9a-zA-Z\_\/]+\/)?([0-9a-zA-Z\_\-]+)\.(jpg|jpeg|png|gif)\/?$ \/files\/framework\/$1$2\.$3 [QSA,L,NC]
RewriteRule ^file\/([0-9a-zA-Z\_\/]+\/)?([0-9a-zA-Z\_\-\.]+)\/?$ \/files\/framework\/$1$2 [QSA,L,NC]
RewriteRule ^sound\/([0-9a-zA-Z\_\/]+\/)?([0-9a-zA-Z\_\-\.]+)\/?$ \/files\/sounds\/$1$2 [QSA,L,NC]
RewriteRule ^rss\/([0-9a-zA-Z\_\/]+\/)?([0-9a-zA-Z\_\-\.]+)\/?$ \/files\/rss\/$1$2 [QSA,L,NC]
#backend
RewriteRule ^(([a-z]{2}|)\/)?((m|t|f|)\/)?(admin)(\/|\.html)?$ /?lang=$2&device=$4&type=$5&module= [QSA,L]
RewriteRule ^(([a-z]{2}|)\/)?((m|t|f|)\/)?(admin)\/(logout)(\/|\.html)?$ /?lang=$2&device=$4&type=$5&action=logoutAdmin [QSA,L]
RewriteRule ^(([a-z]{2}|)\/)?((m|t|f|)\/)?(admin)\/([a-zA-Z0-9\_\-]+)(\/|\.html)?$ /?lang=$2&device=$4&type=$5&module=$6 [QSA,L]
RewriteRule ^(([a-z]{2}|)\/)?((m|t|f|)\/)?(admin)\/([a-zA-Z0-9\_\-]+)\/([a-zA-Z0-9\_\-]+)(\/|\.html)?$ /?lang=$2&device=$4&type=$5&module=$6&action=$7 [QSA,L]
RewriteRule ^(([a-z]{2}|)\/)?((m|t|f|)\/)?(admin)\/([a-zA-Z0-9\_\-]+)\/([a-zA-Z0-9\_\-]+)\/([a-ząćęłńóśżźA-ZĄĆĘŁŃÓŚŻŹ0-9\_\/\.\,\-\ \:]+)(\/|\.html)$ /?lang=$2&device=$4&type=$5&module=$6&action=$7¶m=$8 [QSA,L]
#frontend
RewriteRule ^([a-z]{2})\/?$ /?lang=$1&device=&module= [QSA,L]
RewriteRule ^(([a-z]{2}|)\/)?((m|t|f|)\/)\/?$ /?lang=$2&device=$4&module= [QSA,L]
RewriteRule ^(([a-z]{2}|)\/)?((m|t|f|)\/)?([a-zA-Z0-9\_\-]+)(\/|\.html)$ /?lang=$2&device=$4&module=$5 [QSA,L]
RewriteRule ^(([a-z]{2}|)\/)?((m|t|f|)\/)?([a-zA-Z0-9\_\-]+)\/([a-zA-Z0-9\_\-]+)(\/|\.html)$ /?lang=$2&device=$4&module=$5&action=$6 [QSA,L]
RewriteRule ^(([a-z]{2}|)\/)?((m|t|f|)\/)?([a-zA-Z0-9\_\-]+)\/([a-zA-Z0-9\_\-]+)\/([a-ząćęłńóśżźA-ZĄĆĘŁŃÓŚŻŹ0-9\_\/\.\,\-\ \:]+)(\/|\.html)$ /?lang=$2&device=$4&module=$5&action=$6¶m=$7 [QSA,L]
#front: serwer errors
ErrorDocument 400 /?gotError=400
ErrorDocument 401 /?gotError=401
ErrorDocument 403 /?gotError=403
ErrorDocument 404 /?gotError=404
ErrorDocument 408 /?gotError=408
ErrorDocument 500 /?gotError=500
ErrorDocument 502 /?gotError=502
ErrorDocument 503 /?gotError=503
ErrorDocument 504 /?gotError=504