Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [Access]Foldery & Friendly url
doknes
post 9.04.2015, 20:30:24
Post #1





Grupa: Zarejestrowani
Postów: 106
Pomógł: 0
Dołączył: 2.11.2014

Ostrzeżenie: (10%)
X----


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
  1. <link rel="stylesheet" href="http://www.maneku.pl/css/bootstrap.css"/>

to nie czyta mi wgl. folderu bo myśli, że to zmienna. Co teraz zrobić, by wczytać style? :/
Go to the top of the page
+Quote Post
trueblue
post 9.04.2015, 20:36:01
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]


--------------------
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 15.08.2025 - 03:14