![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 2 Pomógł: 0 Dołączył: 20.11.2010 Ostrzeżenie: (0%) ![]() ![]() |
Witam, mam zanstalowanego apacha na linuxie (ubuntu) i zaladowany mod rewrite
Kod root@stig-pc:/etc/apache2/sites-available# apache2ctl -t -D DUMP_MODULES apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName Loaded Modules: core_module (static) log_config_module (static) logio_module (static) mpm_prefork_module (static) http_module (static) so_module (static) alias_module (shared) auth_basic_module (shared) authn_file_module (shared) authz_default_module (shared) authz_groupfile_module (shared) authz_host_module (shared) authz_user_module (shared) autoindex_module (shared) cgi_module (shared) deflate_module (shared) dir_module (shared) env_module (shared) mime_module (shared) negotiation_module (shared) php5_module (shared) rewrite_module (shared) setenvif_module (shared) status_module (shared) Syntax OK stworzyłem sobie projekt zenda który wygenerował domyślnego .htaccess Kod RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] lecz kiedy klikam w jakiś link na stronie to pjawia mi sie pełen adres na pasku w przeglądarce czyli np: domena.dev/controller/action Proszę o pomoc |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 1 182 Pomógł: 115 Dołączył: 4.03.2009 Skąd: Myszków Ostrzeżenie: (0%) ![]() ![]() |
A czego ty oczekujesz? Przecież framework musi wiedzieć jaki kontroler wywołać.
|
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 2 Pomógł: 0 Dołączył: 20.11.2010 Ostrzeżenie: (0%) ![]() ![]() |
Że nie będzie widocznych linków tylko sama domena, przecież to da się uzyskać z wykorzystaniem mod_rewrite prawda?
|
|
|
![]()
Post
#4
|
|
![]() Grupa: Zarejestrowani Postów: 1 182 Pomógł: 115 Dołączył: 4.03.2009 Skąd: Myszków Ostrzeżenie: (0%) ![]() ![]() |
Nie wiem czy się da, ale mod_rewrite nie do tego służy. Po co ci takie rozwiązanie? Tak się nie robi, chociażby jak chcesz rozwiązać problem linków?
|
|
|
![]() ![]() |
![]() |
Aktualny czas: 19.08.2025 - 04:13 |