Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Rewrite w lighttpd
yamamoto
post
Post #1





Grupa: Zarejestrowani
Postów: 18
Pomógł: 0
Dołączył: 23.08.2008

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


Witajcie,

Właśnie zmieniłem serwer www z Apache na lighttpd i mam pewien problem - mój skrypt używa modrewrite dla przyjaznych adresów, ale nie działa on na lighttpd, a ja nie jestem w stanie go przepisać tak, by na nim działał. Oto on:

  1. Options FollowSymLinks
  2. RewriteEngine On
  3. RewriteRule news\.rss$ rss.php [L]
  4. RewriteRule primera-division-(.*)\.html$ druzyna.php?d=$1 [L]
  5. RewriteRule real-madryt-b-(.*)\.html$ druzynab.php?d=$1 [L]
  6. RewriteRule champions-league-(.*)\.html$ druzynacl.php?d=$1 [L]
  7. RewriteRule (.*),n([0-9]+)\.html$ news.php?id=$2&t=$1 [L]
  8. RewriteRule (.*),f([0-9]+)\.html$ felieton.php?id=$2&t=$1 [L]
  9. RewriteRule (.*),p([0-9]+)\.html$ page.php?id=$2&t=$1 [L]
  10.  
  11. RewriteEngine On
  12. RewriteCond %{HTTP_HOST} ^(www\.)?yyy.pl(.*) [NC]
  13. RewriteRule ^(.*)$ <a href="http://www.xxx.pl/$1" target="_blank">http://www.xxx.pl/$1</a> [R=301,L]
  14.  
  15. RewriteEngine On
  16. RewriteCond %{HTTP_HOST} ^www.xxx.pl$ [NC]
  17. RewriteRule ^(.*)$ <a href="http://xxx.pl/$1" target="_blank">http://xxx.pl/$1</a> [R=301,L]


Jest ktoś w stanie mi pomóc? smile.gif
Go to the top of the page
+Quote Post

Posty w temacie


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 Aktualny czas: 21.08.2025 - 04:12