When server was running on port 80 everying was working easily with fallowing symptom in .htaccess file. When server port is transformed to 8008 in http.conf file 404 error displayed.

http://localhost/mysite/knw/kna00023 <-- works fine
http://localhost:8008/mysite/knw/kna00023 <-- 404 error

Folders:

apache dir c:\server\ 
php dir c:\server\php 
site folder c:\server\www\mysite -- contains website files

.htaccess content:

RewriteEngine On
#check url is not a valid file
RewriteCond %{REQUEST_FILENAME} !-f
#check url is not a valid directory
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^knw/([a-zA-Z0-9]+)$ other.php?term=$1 [L] 
RewriteRule ^knw/([a-zA-Z0-9]+)/$ other.php?term=$1 [L]