There are 3 files that are on Denver. The first one is .htaccess, it lies in the root of the site, here are its contents:
RewriteEngine on RewriteRule .* index.php [L] As far as I understand, he makes sure that all requests are redirected to the Index.php file. This is actually the index.php file itself, it is also located in the root of the site:
<?php if($_SERVER['REQUEST_URI'] === '/'){ $page = "home"; } else { $page = substr($_SERVER['REQUEST_URI'], 1); if(!preg_match('/^[A-z0-9]{3,15}$/',$page)){ exit("error url"); } } session_start(); if(file_exists("all/$page.php")) include_once ("all/$page.php"); elseif($_SESSION['ulogin'] === 1 and file_exists( "auth/$page.php")) include_once ("auth/$page.php"); elseif($_SESSION['ulogin'] !==1 and file_exists( "guest/$page.php")) include_once ("guest/$page.php"); else exit("Страница 404"); function top( $title ){ echo ' <!DOCTYPE html> <html> <head> <meta charset=UTF-8> <title>'.$title.'</title> <link rel="stylesheet" href="style.css" type="text\css"> </head> <body> <div class = "wrapper"> <div class = "menu"> Меню </div> <div class = "content"> Контент </div> </div>'; } function bottom(){ echo "</body> </html>"; } ?> It checks whether the user is authorized and, depending on this, other pages are connected, or rather their contents. In this case, in the address bar of the browser I write the following: hostname.com/login, as expected, the login.php file is included, here is its contents, it lies in the guest folder, which is in the root of the site:
<?php top("Страница входа"); bottom(); ?> Everything is elementary, but styles are not drawn up to the page, the file with styles is also in the root of the site. I tried to put inline styles, they work. If you look at the source of the page in the browser and try to open the file with the styles, it does not open. Problem in .htaccess file?