![]() |
![]() ![]() |
![]() |
![]() ![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 52 Pomógł: 0 Dołączył: 28.03.2009 Ostrzeżenie: (0%) ![]() ![]() |
Witam,
Mam problem z .htaccess, framework pięknie śmiga. Jednak index.php który jest w folderze webroot źle inkluduje pliki (css, js, img) .htaccess jest jeden folder wcześniej przed webroot. ścieżka do pliku pokazuje się taka: http://strona.pl/css/style.css, wszystko działa dopiero jeśli przeniose wszystkie foldery css js img jeden folder wcześniej tam gdzie jest .htaccess. Jak można rozwiązać ten problem ? Tak by wszystkie requesty które mają (jpg|css|js|gif|png) były kierowane do webroota. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_URI} !^.*\.(jpg|css|js|gif|png)$ [NC] RewriteRule ^(.*)$ webroot/index.php?url=$1 </IfModule> Uproszczona struktura: .htaccess -/webroot --/css --/img --/js --/files --index.php |
|
|
![]() ![]() |
![]() |
Aktualny czas: 23.08.2025 - 07:53 |