Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Mod Rewrite, Mod rewrite jest zaladowny lecz dalej wyświetla pełne linki
Vilen
post
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
Go to the top of the page
+Quote Post
Mephistofeles
post
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ć.
Go to the top of the page
+Quote Post
Vilen
post
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?
Go to the top of the page
+Quote Post
Mephistofeles
post
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?
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 Aktualny czas: 19.08.2025 - 04:13