Post
#1
|
|
|
Grupa: Zarejestrowani Postów: 23 Pomógł: 0 Dołączył: 19.07.2015 Ostrzeżenie: (0%)
|
Witam.
Pisze stronę internetową i mam taki problem htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?url=$1 [L,QSA] Klasa root <?php class root { public $class; public $action; public $params; public function __construct() { $routParts = explode("/", $_GET['url']); $this->controller = 'c'.$routParts[0]; $this->action = isset($routParts[1]) ? $routParts[1] : "index"; array_shift($routParts); array_shift($routParts); $this->params = $routParts;; } public function run(){ $sys = new $this->controller(); $sys->{$this->action}($this->params); } } ?> Linki: news i news/add Przy pliku new widziane są jc i css Natomiast jak klikam news/add to nie dziwidzi js i css. Jak to rozwiązać ten problem? |
|
|
|
stepien [JavaScript][CSS][PHP]Przyjazne linki - nie widzi plików css i js 7.08.2018, 12:36:51
dreamit Przyczyną może jest dołączenie pliku bez / na pocz... 7.08.2018, 12:40:03
stepien Nie działa. 7.08.2018, 13:07:33
viking Spróbuj:
CytatRewriteEngine On
RewriteCon... 7.08.2018, 13:21:23
stepien Nie działa
Konsola:
<link href="/backend/... 7.08.2018, 15:38:41
viking Co próbuje wczytać w zakładce sieć? 7.08.2018, 15:48:45
stepien <a href="news/add">Dodaj</a... 7.08.2018, 16:07:38
viking A szkoła ma się magicznie wyczarować? Nie ma w lin... 7.08.2018, 16:46:05
stepien Mam tak nazwane folder w htdocs i mi pokazuje. Juz... 7.08.2018, 17:28:25
trueblue Cytat(stepien @ 7.08.2018, 17:07:38 )... 7.08.2018, 17:40:15
viking KodRewriteEngine On
RewriteCond %{REQUEST_FILENAME... 8.08.2018, 07:57:43
leonpro778 Może będzie łatwiej gdy przedstawisz tutaj swoją s... 8.08.2018, 08:10:56 ![]() ![]() |
|
Aktualny czas: 23.12.2025 - 18:03 |