Witam, może mógłby ktoś mi pomóc, mam problem z pewną stronką którą skopiowałem z pewnego serwera gdzie tą stronke zrobiłem i działa, wszystkie pliki skopiowałem na serwer Apache zainstalowany na kompie XAMPP.
Serwer działa, sprawdzałem różne pliki php itp, ale ta stronka skopiowana do folderu htdocs wywala error 500:
C:/xampp/htdocs/public_html/.htaccess: Invalid command 'ExpiresActive', perhaps misspelled or defined by a module not included in the server configuration
na forum gdzieś sprawdziłem, żeby usunąć # z:
httpd.conf usunąłem '#' LoadModule rewrite_module modules/mod_rewrite.so
i teraz nie wywala błędu ale w ogóle nic nie wyświetla. Ładuje się strona i nic nie wyświetla.
Plik htaccess wygląda tak:
RewriteEngine On
ExpiresActive On
ExpiresDefault A0
<FilesMatch "\.(xml|txt|html|js|css)$">
ExpiresDefault A604800
Header append Cache
-Control
"proxy-revalidate" </FilesMatch>
<FilesMatch "\.(gif|jpg|jpeg|png|swf)$">
ExpiresDefault A604800
Header append Cache
-Control
"public" </FilesMatch>
ErrorDocument 404 /404.shtml
ErrorDocument 400 /400.shtml
ErrorDocument 401 /401.shtml
ErrorDocument 403 /403.shtml
ErrorDocument 500 /500.shtml
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteRule ^(.*)$ <a href="http://www.%{HTTP_HOST}/$1" target="_blank">http://www.%{HTTP_HOST}/$1</a> [R=301,L]
RewriteRule ^strona-glowna,1.html$ index.php?pageId=1 [L]
RewriteRule ^blog,([0-9]+).html$ index.php?pageId=121&blog_id=$1 [L]
RewriteRule ^oferty-widgety,([0-9]+).html$ widget.php?widgetName=Offer&action=getOffet&count=$1 [L]
RewriteRule ^(.*),([0-9]+),([0-9]+).html$ index.php?pageId=$2&submenu=$3 [L]
RewriteRule ^(.*),([0-9]+),panel.html$ cms/index.php?pageId=$2 [L]
RewriteRule ^(.*),([0-9]+)(,p-[0-9]+).html$ index.php?pageId=$2&subPageId=$3
RewriteRule ^(.*),3,([0-9]+).html$ index.php?pageId=3&newId=$2
RewriteRule ^oferty,4,([0-9]+).html$ index.php?pageId=4&parentId=$1 [L]
RewriteRule ^oferty,4,(.*).html$ index.php?pageId=4&offerTags=$1 [L]
RewriteRule ^konkurs,(.*),([0-9]+).html$ index.php?pageId=102&contestId=$2 [L]
RewriteRule ^oferta,(.*),([0-9]+).html$ index.php?pageId=5&offerId=$2
RewriteRule ^(.*),8,([0-9]+),(.*).html$ index.php?pageId=8&galleryId=$2&name=$3
RewriteRule ^lista-produktow,9,([0-9]+).html$ index.php?pageId=9&categoryId=$1
RewriteRule ^produkty-polecane,22,([0-9]+).html$ index.php?pageId=22&categoryId=$1
RewriteRule ^produkty-w-promocji,23,([0-9]+).html$ index.php?pageId=23&categoryId=$1
RewriteRule ^(.*),10,([0-9]+).html$ index.php?pageId=10&productId=$2
RewriteRule ^potwierdzenie-rejestracji,(.*).html$ index.php?pageId=16&key=$1 [L]
RewriteRule ^szczegoly-zlozonego-zamowienia,21,([0-9]+).html$ index.php?pageId=21&orderId=$1 [L]
RewriteRule ^autoryzacja-uzytkownika,([0-9]+),login.html$ index.php?pageId=$1&action=login [L]
RewriteRule ^autoryzacja-uzytkownika,([0-9]+),logout.html$ index.php?pageId=$1&action=logout [L]
RewriteRule ^usuniecie-rejestracji,(.*).html$ index.php?pageId=73&deleteRegistration=yes&key=$1 [L]
RewriteRule ^dodaj-oferte,30,([0-9]+).html$ index.php?pageId=30&type=$1 [L]
RewriteRule ^napisz-wiadomosc,32,([0-9]+).html$ index.php?pageId=32&userId=$1 [L]
RewriteRule ^odpowiedz-wiadomosci,32,([0-9]+),([0-9]+).html$ index.php?pageId=32&userId=$1&messageId=$2 [L]
RewriteRule ^zadaj-pytanie,32,([0-9]+),([0-9]+).html$ index.php?pageId=32&userId=$1&offerId=$2 [L]
RewriteRule ^(.*),34,([0-9]+).html$ index.php?pageId=34&offerType=$2 [L]
RewriteRule ^profil-uzytkownika,35,([0-9]+).html$ index.php?pageId=35&userId=$1 [L]
RewriteRule ^poczta,36,([0-9]+).html$ index.php?pageId=36&list=$1 [L]
RewriteRule ^szczegoly-wiadomosci,37,([0-9]+).html$ index.php?pageId=37&messageId=$1 [L]
RewriteRule ^usun-wiadomosc,38,([0-9]+),1.html$ index.php?pageId=38&messageId=$1&message_type=1 [L]
RewriteRule ^usun-wiadomosc,38,([0-9]+),2.html$ index.php?pageId=38&messageId=$1&message_type=2 [L]
RewriteRule ^edycja-oferty,([0-9]+),([0-9]+).html$ index.php?pageId=$1&offerId=$2 [L]
RewriteRule ^newsletter,(.*).html$ index.php?pageId=24&key=$1 [L]
RewriteRule ^newsletter-usuwanie,(.*).html$ index.php?pageId=25&key=$1 [L]
RewriteRule ^lista-propozycji,59,([0-9]+).html$ index.php?pageId=59&offerId=$1 [L]
RewriteRule ^moje-platnosci,64,([0-9]+).html$ index.php?pageId=64&type=$1 [L]
RewriteRule ^moje-platnosci,64,y([0-9]+),m([0-9]+).html$ index.php?pageId=64&year=$1&month=$2 [L]
RewriteRule ^oplac-prowizje,79,y([0-9]+),m([0-9]+).html$ index.php?pageId=79&year=$1&month=$2 [L]
RewriteRule ^(.*),([0-9]+).html$ index.php?pageId=$2 [L]
RewriteRule ^inwestycja,(.*),([0-9]+),([0-9]+).html$ index.php?galleryId=$2&pageId=$3 [L]
RewriteRule ^transakcja-udana,(.*).html$ raport.php?id=$1&action=done [L]
RewriteRule ^transakcja-nieudana,(.*).html$ raport.php?id=$1&action=error [L]
<files cron.php>
deny from all
allow from 91.200.187.2, 91.200.187.3, 91.200.187.4, 91.200.187.5,91.200.187.6
</files>
ma może ktoś jakieś rady? Jestem całkowicie zielony:)