httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mauro Sacchetto <>
Subject Re: [users@httpd] Address rewriting with mod_rewrite
Date Mon, 06 Oct 2008 16:52:57 GMT
Il lunedì 6 ottobre 2008 15:56:23 Krist van Besien ha scritto:
> In what direction do you want the rewrite to happen?
> Let me guess: You want the user to be able to enter the following in
> the address bar in his browser:
> and the webserver should then answer with the same content as if the
> user had entered:
> Am I correct?

> In this case you just have you rewrite the wrong way around. You are
> trying to rewrite A -> B whereas you need to rewrite B -> A
The corrected string 
RewriteRule ^$ /index.php?pagina=home$ [R=301,NC,L]
doesn't work in any case...

> Doing this in .htaccess files is possible with a rewrite, but this
> might not be the best way. If you want visitors to your site to start
> at /index.php?pagina=home than the following might work better:
> DirectoryIndex /index.php?pagina=home
I describe you the situation. I start with the address:
I change page, After, I come back to home using the menu.
Ths time, the address is:
I'd like the address was in any case


linux user no.: 353546

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message