Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> [symfony] link_to ?
sanchoo
post 18.06.2008, 20:32:53
Post #1





Grupa: Zarejestrowani
Postów: 161
Pomógł: 1
Dołączył: 11.02.2007
Skąd: Kraków

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


Proszę wejść na http://symf.styx.ds1.agh.edu.pl/
i kliknąć na "Cottage for Kids" ... wchodzi na link http://symf.styx.ds1.agh.edu.pl/kids/about i strony nie ma...
jak dopisze index.php http://symf.styx.ds1.agh.edu.pl/index.php/kids/about to jest ok :/ co zrobilem zle bo nie moge dojsc :/ Prosze o pomoc smile.gif

Ten post edytował sanchoo 18.06.2008, 22:20:22
Go to the top of the page
+Quote Post
mike
post 18.06.2008, 22:34:54
Post #2





Grupa: Przyjaciele php.pl
Postów: 7 494
Pomógł: 302
Dołączył: 31.03.2004

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


Nie działa Ci mod_revrite. To on kieruje wszystkie żądania do pliku index.php
Na pewno masz plik .htaccess i na pewno masz włączony moduł mod_revrite?
Go to the top of the page
+Quote Post
tomeksobczak
post 18.06.2008, 22:42:31
Post #3





Grupa: Zarejestrowani
Postów: 139
Pomógł: 10
Dołączył: 6.07.2007
Skąd: opole

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


Kod
RewriteBase /

spróbuj dodać to do pliku .htaccess


--------------------
Go to the top of the page
+Quote Post
sanchoo
post 19.06.2008, 12:26:09
Post #4





Grupa: Zarejestrowani
Postów: 161
Pomógł: 1
Dołączył: 11.02.2007
Skąd: Kraków

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


jak dodaje do /httpd.conf LoadModule rewrite_module modules/mod_rewrite.so
wywala ze modul jest juz uzywany...
Zreszta robilem turiala askeet i nie mailem problemow....

jak dodaje do htaccess wywala blad zewnetrzy serwera :/

AddModule mod_rewrite.c
LoadModule rewrite_module modules/mod_rewrite.so

Dodam, ze dla dev jest ok
http://styx.ds1.agh.edu.pl/~sanchoo/fronte.../myapp_dev.php/

phpinfo: http://styx.ds1.agh.edu.pl/~sanchoo/fronted_symfony/test.php



Ps: RewriteBase /nie pomoglo :/

http://styx.ds1.agh.edu.pl/~sanchoo/fronted_symfony/web/

w .hat... mam:
  1. <IfModule mod_rewrite.c>
  2.  RewriteEngine On
  3.  
  4.  # we skip all files with .something
  5.  RewriteCond %{REQUEST_URI} \..+$
  6.  RewriteCond %{REQUEST_URI} !\.html$
  7.  RewriteRule .* - [L]
  8.  
  9.  # we check if the .html version is here (caching)
  10.  RewriteRule ^$ index.html [QSA]
  11.  RewriteRule ^([^.]+)$ $1.html [QSA]
  12.  RewriteCond %{REQUEST_FILENAME} !-f
  13.  
  14.  # no, so we redirect to our front web controller
  15.  RewriteRule ^(.*)$ index.php [QSA,L]
  16. </IfModule>


Ten post edytował sanchoo 18.06.2008, 23:10:27
Go to the top of the page
+Quote Post
chryssalid
post 8.03.2009, 20:11:05
Post #5





Grupa: Zarejestrowani
Postów: 1
Pomógł: 0
Dołączył: 8.03.2009

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


Sprawdź ustawienia w apps/myapp/config/settings.yml

prod:
.settings:
no_script_name: off

Dla produkcji ustawia się tę wartość na on, co powoduje, że w url-ach nie ma widocznych nazw skryptów, które uruchamiają cały silnik, w tym przypadku index.php? U Ciebie może być sytuacja, że próbujesz wymusić brak takiego parametru w linku, co nie zgadza się z domyślnymi regułami routingu.

Ale to tylko domysł biggrin.gif.
Go to the top of the page
+Quote Post
Bart77
post 24.03.2009, 13:26:07
Post #6





Grupa: Zarejestrowani
Postów: 31
Pomógł: 3
Dołączył: 24.03.2009
Skąd: Poznań

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


Czy ten temat jest wciąż aktualny?
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 24.07.2025 - 17:45