Tuesday, 27 August 2013

.htaccess if subdomain show www.site.com/subs/. no redirect url must bu sub.site.com

.htaccess if subdomain show www.site.com/subs/. no redirect url must bu
sub.site.com

I have problem with .htaccess. I need:
if $_SERVER["HTTP_HOST"] is sub.site.com must show content from
www.site.com/sub/. But URL must be like sub.site.com.
And if sub.site.com/content/ must show content from www.site.com/sub/content/
Is it Possible?
Setting subdomains from hosting not working for me because of my CMS.

No comments:

Post a Comment