RE: mod_rewrite

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

 



RewriteCond %{QUERY_STRING} Country=4(&.+)?$
RewriteCond %{QUERY_STRING} Conc=14(&.+)?$
RewriteRule ^/directory/country.php http://www.domain-2.com/ [R]
 
As for your second requirement, I think it has already been widely discussed on this forum, and others, even recently. A little search through recent postings should enable you to find the answer. The solution is in the design of the web site.

-ascs
________________________________

De : Stéphane Neveu [mailto:stephane.neveu@xxxxxxxx] 
Envoyé : vendredi 1 février 2008 10:16
À : users@xxxxxxxxxxxxxxxx
Objet :  mod_rewrite



Hello all,

   I'm looking for a way to rewrite this url:

http://www.domain-1.com/directory/country.php?id_rub1=32&id_rub2=66&id_rub3=107&col=32&col2=66&col3=107&Country=4&Conc=14

to
 
http://www.domain-2.com/

only when Country=4&Conc=14 is matching.

So I wish apache2 could do something else :

When users come from http://www.domain-2.com/ 

apache2 should display the content of : http://www.domain-1.com/directory/country.php?id_rub1=32&id_rub2=66&id_rub3=107&col=32&col2=66&col3=107&Country=4&Conc=14

but users will only see http://www.domain-2.com/ on the brower.

I really tried to find a solution by myself, but I failed.

Thank you very much for your advices.






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