httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauro Sacchetto <mauro.sacche...@tele2.it>
Subject Re: [users@httpd] Address rewriting with mod_rewrite
Date Tue, 07 Oct 2008 20:50:59 GMT
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@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message