Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> 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
trueblue
post 26.12.2014, 10:20:26
Post #2





Grupa: Zarejestrowani
Postów: 6 806
Pomógł: 1828
Dołączył: 11.03.2014

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


A tak?
7. RewriteRule ^.*\.(gif|jpg|png|css|js)$ - [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: 19.07.2025 - 04:51