Po raz pierwszy bawie sie z .htacess a dokladnie z mod_rewrite.
Dodalem
<Directory "C:/xampp/htdocs/Dev_app"> AllowOverride All </Directory>
a nastepnie
<IfModule mod_rewrite> RewriteEngine On RewriteBase /Dev_app/ RewriteRule ^(about|contact|this|that|search)/?$ index.php?p=$1 </IfModule>
Restart xamppa. Brak checi dzialania i wyrzuca mi blad w xamppie. (po usunieciu <ifModule Mod_rewrite..etc> serwer sie odpala).
A to ostatni log z error_log
[Thu Jan 21 14:01:05.343404 2016] [ssl:warn] [pid 13380:tid 516] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jan 21 14:01:05.402537 2016] [core:warn] [pid 13380:tid 516] AH00098: pid file C:/xampp/apache/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Thu Jan 21 14:01:05.499631 2016] [ssl:warn] [pid 13380:tid 516] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jan 21 14:01:05.539656 2016] [mpm_winnt:notice] [pid 13380:tid 516] AH00455: Apache/2.4.16 (Win32) OpenSSL/1.0.1p PHP/5.5.28 configured -- resuming normal operations
[Thu Jan 21 14:01:05.539656 2016] [mpm_winnt:notice] [pid 13380:tid 516] AH00456: Apache Lounge VC11 Server built: Jul 12 2015 10:56:48
[Thu Jan 21 14:01:05.539656 2016] [core:notice] [pid 13380:tid 516] AH00094: Command line: 'c:\\xampp\\apache\\bin\\httpd.exe -d C:/xampp/apache'
[Thu Jan 21 14:01:05.549661 2016] [mpm_winnt:notice] [pid 13380:tid 516] AH00418: Parent: Created child process 9548
[Thu Jan 21 14:01:06.060067 2016] [ssl:warn] [pid 9548:tid 580] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jan 21 14:01:06.201205 2016] [ssl:warn] [pid 9548:tid 580] AH01909: www.example.com:443:0 server certificate does NOT include an ID which matches the server name
[Thu Jan 21 14:01:06.243271 2016] [mpm_winnt:notice] [pid 9548:tid 580] AH00354: Child: Starting 150 worker threads.
Nic z tego nie rozumiem. Ktos cos?
Panie Moderator,
Prosilbym o przeniesienie watku do "Serwery". NIe chcialbym powielac tematu.
Thx.