.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

Popular posts from this blog

java - Play! framework 2.0: How to display multiple image? -

gmail - Is there any documentation for read-only access to the Google Contacts API? -

php - Controller/JToolBar not working in Joomla 2.5 -