Re: Address rewriting with mod_rewrite

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux