Re: Address rewriting with mod_rewrite

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

 



Il lunedì 6 ottobre 2008 19:14:02 hai scritto:
> 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.

To optimize the page for search motors, I neet to have always
a (pseudo)-static address in home. But I proceed for trials & errors
(moreover errors...). So I tried this (still not working):

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^giovannifornero.net [NC]
RewriteRule (.*) http://www.giovannifornero.net/$1 [L,R=301]
RewriteCond %{QUERY_STRING} pagina=home
RewriteRule ^$ http://www.giovannifornero.net [R=301,L]

I think more other syntactical mistakes...

Thax a lot

MS

-- 
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