DirectoryIndex index.php

<IfModule mod_rewrite.c>
    RewriteEngine On
    
    # Открываем /admin.php для /admin
    RewriteRule ^admin/?$ admin.php [L]

    # ЧПУ для объявлений
    RewriteRule ^lots/?$ index.php?lots [QSA,L]
    RewriteRule ^lots/([^/]+)$ index.php?lots=$1 [QSA,L]
    RewriteRule ^lc/([^/]+)$ index.php?lots-category=$1 [QSA,L]

    # ЧПУ для объявлений
    RewriteRule ^ads/?$ index.php?ads [QSA,L]
    RewriteRule ^ads/([^/]+)$ index.php?ads=$1 [QSA,L]
    RewriteRule ^ac/([^/]+)$ index.php?ads-category=$1 [QSA,L]

    # ЧПУ для файлов
    RewriteRule ^files/?$ index.php?files [QSA,L]
    RewriteRule ^files/([^/]+)$ index.php?files=$1 [QSA,L]
    RewriteRule ^fc/([^/]+)$ index.php?files-category=$1 [QSA,L]

    # ЧПУ для фильмов
    RewriteRule ^movies/?$ index.php?movies [QSA,L]
    RewriteRule ^movies/([^/]+)$ index.php?movies=$1 [QSA,L]
    RewriteRule ^mc/([^/]+)$ index.php?movies-category=$1 [QSA,L]

    # ЧПУ для новостей
    RewriteRule ^news/?$ index.php?news [QSA,L]
    RewriteRule ^news/([^/]+)$ index.php?news=$1 [QSA,L]
    RewriteRule ^nc/([^/]+)$ index.php?news-category=$1 [QSA,L]

    # ЧПУ для товаров
    RewriteRule ^products/?$ index.php?products [QSA,L]
    RewriteRule ^products/([^/]+)$ index.php?products=$1 [QSA,L]
    RewriteRule ^pc/([^/]+)$ index.php?products-category=$1 [QSA,L]

    # ЧПУ для мероприятий
    RewriteRule ^events/?$ index.php?events [QSA,L]
    RewriteRule ^events/([^/]+)$ index.php?events=$1 [QSA,L]
    RewriteRule ^ec/([^/]+)$ index.php?events-category=$1 [QSA,L]

    RewriteRule ^shops/products/?$ index.php?shops [QSA,L]
    RewriteRule ^shops/products/([^/]+)$ index.php?shops=$1 [QSA,L]
    RewriteRule ^shc/([^/]+)$ index.php?shop-category=$1 [QSA,L]

    # ЧПУ для профилей
    RewriteRule ^profile/?$ index.php?profile [QSA,L]

    # ЧПУ для страницы регистрации
    RewriteRule ^registration/?$ index.php?registration [QSA,L]
    
    # Проверка наличия файла или директории перед применением правила 404
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d

    # RewriteRule для всех остальных запросов
    RewriteRule ^(.+)$ index.php?pages=$1 [QSA,L]
</IfModule>