On Mon, Oct 6, 2008 at 12:18 PM, Mauro Sacchetto <mauro.sacchetto@xxxxxxxx> wrote: > Il lunedì 6 ottobre 2008 15:55:33 Eric Covener ha scritto: >> The query string (after the question mark) isn't part of what you're >> comparing against. To compare against the query string, precede your >> rule with >> Rewritecond %{QUERY_STRING} pagina=home (and remove the query string part. >> The 2nd parameter of your RewriteRule should be a full URL >> (host/port/path) or just "/" in this case would work, and should not >> have any regex characters like "^" in it. > > I tried this whole address string: > RewriteRule http://www.giovannifornero.net/index.php?pagina=home$ > http://www.giovannifornero.net [R=301,NC,L] None of the examples in the manual match against the protocol or hostname part of the URL. I previously described that you also can't match the query string in the rewriterule. You also probably need a trailing slash on the 2nd argument. Note that this rule redirects from the index.php page _to_ the "/" page which seems to be the opposite of what you want. -- Eric Covener covener@xxxxxxxxx --------------------------------------------------------------------- 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