|
Subject: Re: Address rewriting with mod_rewrite Newsgroups: gmane.comp.apache.user Date: 2008-10-07 20:50:59 GMT (13 weeks, 4 hours and 22 minutes ago)
Il martedì 7 ottobre 2008 19:43:09 hai scritto:
> That is because the link you click on contains the long addres.
> Rewrites do not affect the content of the response. You will need to
> change the code that generates the menu to use the short address for
> the "home" button.
Y're right!
Infact I obtained the wished result put in PHP code:
if($pagina!=$voce) {
echo $voce=="home" ? '<a href=".">' : '<a
href="index.php?pagina='.$voce.'">';
}
instead of the original string:
*if($pagina!=$voce) echo '<a href="index.php?pagina='.$voce.'">';*
M.
--
linux user no.: 353546
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe <at> httpd.apache.org
" from the digest: users-digest-unsubscribe <at> httpd.apache.org
For additional commands, e-mail: users-help <at> httpd.apache.org
|
|
|