httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eimantas Vaiciunas <eimantas.vaiciu...@sc.vu.lt>
Subject Re: [users@httpd] Subdomains and mod_rewrite
Date Tue, 09 Nov 2004 08:24:31 GMT
On Tuesday 09 November 2004 10:18, Albert Vila wrote:
> Hi all,
>
>  I'm currently have an apache web server serving the following urls:
>    - www.mydomain.com/location/spain_1.html
>    - www.mydomain.com/location/french_2.html
>    - www.mydomain.com/category/list_houses_11.html
>
>  I've got the RewriteRule ^/location/([a-z_\(\)]*)([0-9]+).html
> /.../web/index.cgi?location=$2 [L] in order to change the main location.
> This location is stored in a client cookie, so the following call to
> www.mydomain.com/category/list_houses_11.html lists all houses from the
> correct location (the one selected by the user). I've got RewriteRule
> ^/category/([a-z_\(\)]*)([0-9]+).html /.../web/list.cgi?category_id=$2 [L]
> to see the category list.
>
>  Now, I wanna change the above urls for:
>    - spain.mydomain.com
>    - french.mydomain.com
>    - spain.mydomain.com/category/list_houses_11.html
RewriteRule ^/location/([a-z_\(\)]*)([0-9]+).html 
http://$1.yourdomain.com/index.cgi?location=$2 [L]

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


Mime
View raw message