Files
web_work/public/.htaccess
kirill.khorkov d2c15ec37f [MVC] Полная миграция на MVC архитектуру
- Создано ядро MVC: App, Router, Controller, Model, View, Database
- Созданы модели: User, Product, Category, Cart, Order
- Созданы контроллеры: Home, Auth, Product, Cart, Order, Page, Admin
- Созданы layouts и partials для представлений
- Добавлены все views для страниц
- Настроена маршрутизация с чистыми URL
- Обновлена конфигурация Docker и Apache для mod_rewrite
- Добавлена единая точка входа public/index.php
2026-01-03 11:48:14 +03:00

34 lines
916 B
ApacheConf
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# AETERNA MVC - Apache URL Rewrite Rules
<IfModule mod_rewrite.c>
RewriteEngine On
# Базовый путь приложения
RewriteBase /cite_practica/
# Если запрос к существующему файлу или директории - пропускаем
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Все остальные запросы направляем на index.php
RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
# Отключаем просмотр директорий
Options -Indexes
# Защита файлов конфигурации
<FilesMatch "\.(env|json|lock|md)$">
Order allow,deny
Deny from all
</FilesMatch>
# Кодировка по умолчанию
AddDefaultCharset UTF-8
# Типы файлов
AddType text/css .css
AddType text/javascript .js
AddType image/svg+xml .svg