Sunday, 15 February 2015

.htaccess - What are the pros and cons of a m.example.com vhost vs subfolder rewrite to m.example.com? -



.htaccess - What are the pros and cons of a m.example.com vhost vs subfolder rewrite to m.example.com? -

i'm having issue right @ work employee wants utilize subfolder /m (mobile) , have force folder construction front end of url m.example.com

i have setup m.example.com beingness told file path utilize through vhosts.

his method: example.com/m/index points @ m.example.com/index , redirects through htaccess

my method: m.example.com virtual host created in httpd.conf , told utilize folder path example.com/m root

what pros , cons of doing either method? sense vhost "proper" way , cleaner way. don't want throw more garbage in htaccess file if not needed.

.htaccess url-rewriting

No comments:

Post a Comment