Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Problem w przerobieniu rewrite na nginx, j/w
LordGM
post
Post #1





Grupa: Zarejestrowani
Postów: 10
Pomógł: 0
Dołączył: 5.11.2005

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


Mam problem w przerobieniu htaccess z apache na nginx. Jest ktoś wstanie pomóc? Kod nie jest długi
  1. SetEnv PHP_VER 5
  2.  
  3. RewriteEngine On
  4.  
  5. RewriteRule ^([a-zA-Z0-9\-\_]+).html$ index.php?p=$1
  6. RewriteRule ^([a-zA-Z0-9\-\_]+),([a-zA-Z0-9\-\_]+).html$ index.php?p=$1&action=$2
  7. RewriteRule ^([a-zA-Z0-9\-\_]+),([a-zA-Z0-9\-\_]+),([a-zA-Z0-9\-\_]+).html$ index.php?p=$1&action=$2&id=$3


Próbowałem użyć generatorów ale nie rusza :/ (IMG:style_emoticons/default/ohno-smiley.gif)
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Pyton_000
post
Post #2





Grupa: Zarejestrowani
Postów: 8 068
Pomógł: 1414
Dołączył: 26.10.2005

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


Może coś takiego:
Kod
rewrite ~* ^([a-z0-9_-]+).html index.php?=$1

i analogicznie dla pozostałych
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: 11.10.2025 - 19:36