![]() |
![]() |
![]() ![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 144 Pomógł: 12 Dołączył: 16.03.2007 Ostrzeżenie: (0%) ![]() ![]() |
Witam, siedzę nad problem już ponad 2 godziny i na nic sensownego nie mogę wpaść. Tworzę sobie serwis w na localhoscie (XAMPP 1.6.7, php 5.2.9 apache 2.0).
Kod Options -Indexes php_value session.use_only_cookies 1 php_value session.use_trans_sid 0 RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteBase /ogloszenia4 # User RewriteRule ^wyloguj.html? index.php?id=user&id2=log_out RewriteRule ^zarejestrowany.html? index.php?id=user&id2=register_end RewriteRule ^rejestracja_krok_([0-9]+).html? index.php?id=user&id2=register&id3=$1 RewriteRule ^bledny_login.html? index.php?id=user&id2=bad_pass RewriteRule ^niektywne_konto.html? index.php?id=user&id2=no_activate_user RewriteRule ^zapomnialem_hasla.html? index.php?id=user&id2=forget_pass RewriteRule ^odzyskalem_haslo.html? index.php?id=user&id2=remind_pass RewriteRule ^kod_([0-9a-zA-Z]+).html? index.php?id=user&id2=activate_user&id3=$1 RewriteRule ^dane.html? index.php?id=user&id2=change_data RewriteRule ^dane_zmienione.html? index.php?id=user&id2=change_end RewriteRule ^regulamin/(1|2).html? index.php?id=user&id2=show_regulamin&id3=$1 Problem wygląda następująco: gdy odpalam http://localhost/ogloszenia4/wyloguj.html itp wszystko jest ok, natomiast ostnia regułka: Kod RewriteRule ^regulamin/(1|2).html? index.php?id=user&id2=show_regulamin&id3=$1 Wywołuje http://localhost/ogloszenia4/regulamin/1.html to wiadomo css mi się nie ładuje, spowodowane jest to tym, że korzystam z adresów względnych:
I teraz mam pytanie czy da się ten problem rozwiązać za pomocą regułek mod_rewrite ? Próbowałem dodać w sekcji head <base="http://localhost/ogloszenia4" />, ale to nic mi nie pomogło |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Moderatorzy Postów: 15 467 Pomógł: 1451 Dołączył: 25.04.2005 Skąd: Szczebrzeszyn/Rzeszów ![]() |
Kod RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteBase /ogloszenia4 Możesz wytłumaczyć, co chcesz przez ten zapis osiągnąć? Cytat ale to nic mi nie pomogło Firebug co zwraca? Jaką ścieżkę bezwzględną? |
|
|
![]() ![]() |
![]() |
Aktualny czas: 11.10.2025 - 21:22 |