RewriteEngine on
RewriteCond %{HTTP_HOST} ^www.mochipl.mochipl.jrchosting.com$
RewriteRule ^/?$ http://mochipl.mochipl.jrchosting.com [R=301,L]

RewriteRule ^pomoc.html$ /home/pomoc [L]
RewriteRule ^kontakt.html$ /home/kontakt [L]
RewriteRule ^wszystkie-gry.html$ /home/showAllGames [L]

RewriteRule ^([a-z0-9\-]*)\-(.+)_(.+)\.html$ /home/notegame/$2/$3 [L]

RewriteRule ^([a-z0-9\-]*)\/([a-z0-9\-]*)\-(.+)\.html$ /home/showgame/$3 [L]
RewriteRule ^komentarze\-(.+)\-(.+)\.html$ /home/showAllComments/$1/$2 [L]
RewriteRule ^([a-z0-9\-]*)\-(.+)\-(.+)\.html$ /home/showByCategory/$2/$3 [L]

RewriteCond $1 !^(index\.php|images|files|robots\.txt)
RewriteRule ^(.*)$ /index.php/$1 [L]
