Pomoc - Szukaj - Użytkownicy - Kalendarz
Pełna wersja: Mod Rewrite
Forum PHP.pl > Forum > Serwery WWW
Vilen
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
Mephistofeles
A czego ty oczekujesz? Przecież framework musi wiedzieć jaki kontroler wywołać.
Vilen
Że nie będzie widocznych linków tylko sama domena, przecież to da się uzyskać z wykorzystaniem mod_rewrite prawda?
Mephistofeles
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?
To jest wersja lo-fi głównej zawartości. Aby zobaczyć pełną wersję z większą zawartością, obrazkami i formatowaniem proszę kliknij tutaj.
Invision Power Board © 2001-2025 Invision Power Services, Inc.