Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> problem z htaccess, ([a-zA-Z-_0-9]+) powoduje błąd - proszę o pomoc
milk
post
Post #1





Grupa: Zarejestrowani
Postów: 39
Pomógł: 0
Dołączył: 25.08.2010

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


Witam,
mam problem z htaccess`em.

Jeden wpis powoduje błąd 500 serwera.

Jak można inaczej zamienić ([a-zA-Z-_0-9]+) żeby spełniało swoją funkcję lecz żeby nie wstawiać tam (.*)

Poniżej wrzucam fragment mojego htaccess`a

Wyboldowane linijki powodują błąd.

Bardzo proszę o pomoc!



  1. #Options FollowSymLinks
  2. RewriteEngine On
  3. RewriteBase /
  4.  
  5.  
  6. #STRONA GŁOWNA (index)
  7. RewriteRule ^(/|index\.html)?$ modules/index.php?main=true
  8.  
  9.  
  10. RewriteRule ^oferta/(index\.html)?$ modules/offer.php
  11.  
  12. RewriteRule ^oferta/([0-9]+)/([a-zA-Z-_0-9]+)/?$ modules/offer.php?id_cat=$1
  13. RewriteRule ^oferta/([0-9]+)/([a-zA-Z-_0-9]+)/([0-9]+)/?$ modules/offer.php?id_cat=$1&id_prod=$3
  14. RewriteRule ^oferta/([0-9]+)/(.*)/([0-9]+)/(.*)/([0-9]+)/?$ modules/offer.php?id_cat=$1&id_prod=$3&id_pt=$5
  15.  
Go to the top of the page
+Quote Post
Sephirus
post
Post #2





Grupa: Zarejestrowani
Postów: 1 527
Pomógł: 438
Dołączył: 28.06.2011
Skąd: Warszawa

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


Zamień ([a-zA-Z-_0-9]+) na ([a-zA-Z\-_0-9]+) i powinno pomóc (IMG:style_emoticons/default/wink.gif)
Go to the top of the page
+Quote Post
milk
post
Post #3





Grupa: Zarejestrowani
Postów: 39
Pomógł: 0
Dołączył: 25.08.2010

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


dzięki
Go to the top of the page
+Quote Post

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: 23.08.2025 - 05:09