.htaccess
Options +FollowSymLinks
Options All -Indexes

Options +FollowSymLinks
RewriteEngine On
RewriteRule ^products/([0-9]+)-([^/]+)\/  product.php?id=$1&baslik=$2[L]
RewriteRule ^pages/(.*)/$ index.php?sayfa=$1 [L]
RewriteRule ^([^/]+)/page/([^/]+)/$ category.php?sef=$1&sayfa=$2 [L] 
RewriteRule ^([^/]+)/$ category.php?sef=$1 [L] 
RewriteRule ^search/page/([0-9]+)/$ search.php?sayfa=$1 [L,NC] 
RewriteRule ^search search.php [L,NC] 

RewriteRule ^register register.php [L,NC] 
RewriteRule ^cart cart.php [L,NC] 
RewriteRule ^account checkout.php [L,NC] 
RewriteRule ^logout logout.php [L,NC] 
RewriteRule ^orders orders.php [L,NC] 
RewriteRule ^order-history order-history.php [L,NC] 
RewriteRule ^sitemap.xml sitemap.php [L,NC]
sorunum şu.
örnek url:
http://localhost/proje/product/id-urunsef/ şeklinde bir hiyerarşim var.

fakat kategori sayfamda ki hiyerarşim farklı
örnek url: http://localhost/proje/kategorisef/

kategori sayfam ile arama sayfam birbirine karışıyor.
bunu nasıl engelleyebilirim.

.htaccess te sayfa önceliği nasıl olur?