Use mod rewrite and mod proxy and do it all with apache.
category.domain.com mod rewrite proxy's to www.domain.com/catgory/index
James
On Jul 3, 2008, at 12:20 PM, Damien wrote:
>
> Hi!
>
> I have a website built with symfony, organized with categories. I
> would like to have a subdomain for each category. For example:
>
> mymcategory.mywebsite.com
>
> I made my subdomain and catch it in my apache webserver, but I don't
> know how to make it available in my website.
> I tought to build a new route in my routing.yml like:
>
> subdomain:
> host: mycategory.mywebsite.com
> url: /
> param: {module: category, action: show, name: mycategory}
>
> It doesn't work. Should I use it or make a filter ? But I don't know
> how to make this type of filter.
>
> I hope you will be able to help me.
>
> Thank you
>
> Damien Gougeon
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---