RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)/?$ index.php?module=SectionView§ion_url=$1 [L,QSA]
RewriteRule ^([^/]+)/([^/]+)/?$ index.php?module=CategoryView§ion_url=$1&category_url=$2 [L,QSA]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/?$ index.php?module=SubcategoryView§ion_url=$1&category_url=$2&subcategory_url=$3 [L,QSA]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ index.php?module=SubcategoryView§ion_url=$1&category_url=$2&subcategory_url=$3&subsubcategory_url=$4 [L,QSA]
RewriteRule ^p/([^/]+)/?$ index.php?module=PageView&page_url=$1 [L,QSA]
RewriteRule ^id/([^/]+)/?$ index.php?module=RecordView&id=$1 [L,QSA]
RewriteRule ^/?$ index.php?module=MainView [L,QSA]
design/img - картинки
design/css - стили
design/img/file.jpg
совпадает с шаблоном ^([^/]+)/([^/]+)/([^/]+)/?$
RewriteCond %{REQUEST_FILENAME} !-f
относится только одному первому RewriteRule
.RewriteEngine on
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteRule ^([^/]*)/?$ index.php?module=SectionView§ion_url=$1 [L,QSA]
RewriteRule ^([^/]+)/([^/]+)/?$ index.php?module=CategoryView§ion_url=$1&category_url=$2 [L,QSA]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/?$ index.php?module=SubcategoryView§ion_url=$1&category_url=$2&subcategory_url=$3 [L,QSA]
RewriteRule ^([^/]+)/([^/]+)/([^/]+)/([^/]+)/?$ index.php?module=SubcategoryView§ion_url=$1&category_url=$2&subcategory_url=$3&subsubcategory_url=$4 [L,QSA]
RewriteRule ^p/([^/]+)/?$ index.php?module=PageView&page_url=$1 [L,QSA]
RewriteRule ^id/([^/]+)/?$ index.php?module=RecordView&id=$1 [L,QSA]
RewriteRule ^/?$ index.php?module=MainView [L,QSA]