Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [mod_rewrite] slash w adresie, bez niego nie działają style
kipero
post
Post #1





Grupa: Zarejestrowani
Postów: 233
Pomógł: 50
Dołączył: 28.10.2006
Skąd: Radom

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


Kod
RewriteEngine on
RewriteRule ^forum/?$ punbb/index.php [L]
RewriteRule ^forum/([^-]+)?$ punbb/$1 [L]

Jeżeli wejdę na stronę http://strona.pl/forum/ wszystko jest ok, ale bez slasha na końcu http://strona.pl/forum nie działają style, linki i obrazki. Jak przekierować forum na forum/?

Ten post edytował kipero 16.02.2007, 10:41:15
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Reiven
post
Post #2





Grupa: Zarejestrowani
Postów: 100
Pomógł: 1
Dołączył: 17.03.2006

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


  1. <?php
  2. RewriteRule ^forum/?$ punbb/index.php [L] 
  3. forum/?
  4. ?>

i się dziwisz czemu ? tak zdefiniowałeś link w .htaccess dodaj jeszcze:

  1. <?php
  2. RewriteRule ^forum$ punbb/index.php [L]
  3. ?>


i będzie śmigać (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg)
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 4.10.2025 - 16:52