![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
![]() Grupa: Zarejestrowani Postów: 106 Pomógł: 0 Dołączył: 2.11.2014 Ostrzeżenie: (10%) ![]() ![]() |
Zrobiłem sobie friendly url i wszystko fajnie działa
RewriteEngine On RewriteRule ^([^/]*)/([^/]*)$ /index.php?str=$1&user=$2 [L] Ale gdy mam np. link do stylów w kodzie
to nie czyta mi wgl. folderu bo myśli, że to zmienna. Co teraz zrobić, by wczytać style? :/ |
|
|
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 6 806 Pomógł: 1828 Dołączył: 11.03.2014 Ostrzeżenie: (0%) ![]() ![]() |
Kod RewriteEngine On RewriteCond %{REQUEST_URI} !^/css RewriteCond %{REQUEST_URI} !^/js RewriteCond %{REQUEST_URI} !^/img RewriteRule ^([^/]*)/([^/]*)$ /index.php?str=$1&user=$2 [L] Albo: Kod RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-s RewriteCond %{REQUEST_FILENAME} !-l RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/]*)/([^/]*)$ /index.php?str=$1&user=$2 [L] -------------------- |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 15.08.2025 - 03:14 |