Napisałem prosty silnik, który bezpośrednio linkuje CSS'a do szablonu, w którym do diva ładowany jest cały kontent strony
<?php require_once 'utilities/connect.php'; require_once 'utilities/location.php'; $module = $_GET['module']; }else{ $module = 'home'; } $moduleDir = 'modules/'.$module.'.php'; $cssDir = 'styles/'; $imagesDir = 'images/'; require_once ($moduleDir); require_once ('layouts/basic.php'); }else { }
Gdy próbuję wejść pod adres index.php?module=edit_category&id=<id> to wszystko działa, jednak, gdy próbóję wejść tam za pomocą RewriteRule
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP:X-Forwarded-Proto} !https [NC]
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteRule home index.php
RewriteRule home index.php?module=home
RewriteRule about-me index.php?module=about_me
RewriteRule my-works index.php?module=my_works
RewriteRule contact index.php?module=contact
RewriteRule list-of-categories index.php?module=list_of_categories
RewriteRule add-category index.php?module=add_category
RewriteRule ^delete-category/([^-]+)$ index.php?module=delete_category&id=$1
RewriteRule ^edit-category/([^-]+)$ index.php?module=edit_category&id=$1
RewriteRule admin index.php?module=admin
RewriteRule panel index.php?module=panel
RewriteRule logout index.php?module=logout
to mimo, że wszystkie działania działają bez zarzutu, to css się niestety nie wczytuje :/
Z góry dziękuję za pomoc
