RewriteEngine On RewriteRule ^kupatila/show-([0-9a-zA-Z]*) kupatila.php?show=$1 [L,NC] RewriteRule ^kupatila/ kupatila.php [L,NC]