![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 27 Pomógł: 0 Dołączył: 31.05.2014 Ostrzeżenie: (0%) ![]() ![]() |
Chcę się trochę pobawić modułem rewrite.c na Apachu więc go pomyślnie załadowałem Więc taki kod nie daje komunikatu błędu LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so Ale taki już daje RewriteEngine On RewriteBase / Taki daje błąd * Restarting web server apache2 [fail] * The apache2 configtest failed. Output of config test was: AH00526: Syntax error on line 123 of /etc/apache2/apache2.conf: RewriteBase: only valid in per-directory config files Action 'configtest' failed. The Apache error log may have more information. Uzywam następującej wersji Apacha Apache/2.4.7 Moja dystrybucja to linux Mint 17.2 |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 27 Pomógł: 0 Dołączył: 31.05.2014 Ostrzeżenie: (0%) ![]() ![]() |
Dzięki teraz działa, ale teraz nam inny problem nie wiem jak daną regułę zmienić aby wychwytywała mi pliki tylko w katalogu ajax np. taka
RewriteRule ^(\w+)/(\w+)/?$ /ajax/index.php?i=$2&j=$1 [N] działa dobrze, ale jak będzie inny katalog niż ajax to też tą regułę zastosuję próbowałem coś takiego RewriteRule ^ajax/(\w+)/(\w+)/?$ index.php?i=$2&j=$1 [N] Ale nie chcę działać. Ten akurat problem już rozwiązałem potrzebowałem takiego zapisu. RewriteRule ^ajax/(\w+)/(\w+)/?$ /ajax/index.php?i=$2&j=$1 [N] |
|
|
![]() ![]() |
![]() |
Aktualny czas: 13.10.2025 - 21:48 |