![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 3 Pomógł: 0 Dołączył: 8.04.2011 Ostrzeżenie: (0%) ![]() ![]() |
Witam...
Mam taki problem... Serwer nie obsługuje flag w htacces a ja to potrzebuje...;/ Jest jakis sposob aby przekształcic php tak zeby nie potrzebowal htaccess Kod RewriteEngine on #RewriteBase / RewriteRule ^index.html$ /index.php [L] RewriteRule ^dodaj.html$ /index.php?s=dodaj [L] RewriteRule ^regulamin.html$ /index.php?s=regulamin [L] RewriteRule ^kontakt.html$ /index.php?s=kontakt [L] RewriteRule ^kontakt_wyslij.html$ /index.php?s=kontakt_send [L] RewriteRule ^szukaj.html$ /index.php?s=szukaj [L] RewriteRule ^dodaj_wpis.html$ /index.php?s=dodaj_base [L] RewriteRule ^([a-z0-9_]+),([0-9]+)\.html$ /index.php?s=zobacz&id=$2 [L] RewriteRule ^([a-z0-9_]+),([0-9]+),([0-9]+)\.html$ /?s=ogloszenia&catid=$2_$3 [L] RewriteRule ^([a-z]+),([0-9]+),([0-9]+),([0-9]+)\.html$ /index.php?s=$1&catid=$2_$3&p=$4 [L] Pozdrawiam |
|
|
![]() |
![]()
Post
#2
|
|
Grupa: Zarejestrowani Postów: 690 Pomógł: 92 Dołączył: 6.02.2011 Ostrzeżenie: (0%) ![]() ![]() |
Przejrzyj, jak jest to zrobione we frameworkach.
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 3 Pomógł: 0 Dołączył: 8.04.2011 Ostrzeżenie: (0%) ![]() ![]() |
No sprobuje ale nie mam pojecia jak.....
Głównie chodzi mi o te 3 ostatnie.... Ztymi pierwszymi dalem juz sobie rade..(IMG:style_emoticons/default/smile.gif) Ten post edytował dj_matis 8.04.2011, 13:20:53 |
|
|
![]()
Post
#4
|
|
Grupa: Zarejestrowani Postów: 690 Pomógł: 92 Dołączył: 6.02.2011 Ostrzeżenie: (0%) ![]() ![]() |
Jeśli dobrze rozumiem, to chcesz mieć routing taki jak przez htaccess, ale bez ustawiania w nim wszystkich rzeczy, tak?
Więc tworzysz .htaccess Kod RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php/$0 [PT] (część htaccess Kohany) Potem tylko w pliku patrzysz, jaki był link i reagujesz EDIT: A z tymi linkami to wyrażenia regularne sie przydadzą Ten post edytował mat-bi 8.04.2011, 13:24:32 |
|
|
![]()
Post
#5
|
|
Grupa: Zarejestrowani Postów: 3 Pomógł: 0 Dołączył: 8.04.2011 Ostrzeżenie: (0%) ![]() ![]() |
Znaczy jest tak...
Serwer obsluguje htaccess ale nie obsluguje flag np [L] To jest serwis ogloszeniowy i nie wiem jak zrobic zeby ogloszenia sie pokazywaly ( z mysql) Strona na innym serwerze dziala z htaccessem Wrzucilem htaccess i teraz pokazuje mi "No input file specified. " Po wrzuceniu htaccess od mat-bi pokazuje "No input file specified. " a nie wiem co zmienic w php (IMG:style_emoticons/default/sad.gif) Hm... nikt nie potrafi mi pomoc? (IMG:style_emoticons/default/sad.gif) Ten post edytował dj_matis 8.04.2011, 13:34:50 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 24.08.2025 - 22:38 |