diff --git a/.htaccess b/.htaccess
new file mode 100644
index 0000000..37ef9c6
--- /dev/null
+++ b/.htaccess
@@ -0,0 +1,7 @@
+
+RewriteEngine on
+RewriteBase /
+RewriteCond %{REQUEST_FILENAME} !-f
+RewriteCond %{REQUEST_FILENAME} !-d
+RewriteRule (.*) /index.php?route=$1 [QSA,L]
+
\ No newline at end of file
diff --git a/core/bootstrap.php b/core/bootstrap.php
index 867986e..6a96c6e 100644
--- a/core/bootstrap.php
+++ b/core/bootstrap.php
@@ -38,6 +38,8 @@
}
});
+ require_once __DIR__ . '/routes.php';
+
Cache::init(ROOT_PATH . '/core/cache/', USE_CACHE);
// очистка кэша
diff --git a/core/routes.php b/core/routes.php
new file mode 100644
index 0000000..f0d879c
--- /dev/null
+++ b/core/routes.php
@@ -0,0 +1,2 @@
+
';
if (User::isAuthorized()) {
global $USER;
echo str_replace('
getAllUserData(), 'Информация о пользователе'));