Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Htaccess i css
KotWButach
post 26.12.2014, 07:26:58
Post #1





Grupa: Zarejestrowani
Postów: 361
Pomógł: 10
Dołączył: 8.02.2012

Ostrzeżenie: (0%)
-----


Witam
Prosze was o pomoc od wczoraj czytam tematy na temat htaccess ale nie potrafię ich zastosować.

mam plik

  1. RewriteEngine On
  2.  
  3. RewriteCond %{REQUEST_FILENAME} !-d
  4. RewriteCond %{REQUEST_FILENAME} !-f
  5. RewriteCond %{REQUEST_FILENAME} !-l
  6.  
  7. RewriteRule ^.*\.(gif|jpg|png|css|js)$ - [last]
  8.  
  9. RewriteRule ^/([a-z0-9-_]+).(php|html|htm)$ /$1 [R=301,L]
  10. RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]


css znajduje się w nastepujacym katalogu



Template/Default/css/main.css

Niestety jak bym nie kombinował nie mogę się do niego dostać wywala mi stronę 404.

nawet wywołanie całej ściezki nie skutkuje sukcesem

zdziałałem coś takeigo ale to dziąła odwrotnie mam css ale nie mam php sad.gif
  1. RewriteEngine On
  2. RewriteCond ${REQUEST_URI} ^.+$
  3. RewriteCond %{REQUEST_FILENAME} \.(gif|jpe?g|png|js|css|swf|php|ico|txt|pdf|xml)$ [OR]
  4. RewriteCond %{REQUEST_FILENAME} -f [OR]
  5. RewriteCond %{REQUEST_FILENAME} -d [OR]
  6. RewriteCond %{REQUEST_FILENAME} -l
  7.  
  8.  
  9. RewriteRule ^ - [L]
  10. RewriteRule ^/([a-z0-9-_]+).(php|html|htm)$ /$1 [R=301,L]
  11. RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
  12.  


Ten post edytował KotWButach 26.12.2014, 08:18:49
Go to the top of the page
+Quote Post

Posty w temacie
- KotWButach   Htaccess i css   26.12.2014, 07:26:58
- - trueblue   A tak? 7. RewriteRule ^.*\.(gif|jpg|png|css|j...   26.12.2014, 10:20:26


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: 14.08.2025 - 09:10