.htaccess - Symfony2/ get variable from subdomaine and htaccess -
i using symfony2.
what best practice variable url. using subdomain city. ex: paris.website.com
how paris variable. believe need play kernel , htaccess, haven't figured out how.
thanks if can put me on right tracks that.
cheers,
pierre.
you should read documentation of symfony. 1 of basis components of symfony routing provides need :
www.mysite.com/paris/
using subdomain not solution, can play .htaccess rewrite subdomain paris.mysite.com www.mysite.com/paris (if web server allows it) after having configured route in symfony.
Comments
Post a Comment