URL Rewriting and subdomain
#1

Ok basically i need some help with subdomain if some one know how to.

I just created a image subdomain for my site

i.img.mysite.com

but i can't reach it from non-www.. only from www.i.img.mysite.com

if i type the non-www i get my 404 page

Whats the problem? DNS CNAME and A problem? or can be solved with .htaccess?
Reply
#2

Could you show your directory structure? I'm not sure, but I think apache automatically redirects subdomains to folders with the same name.
Reply
#3

MainDirectory = mainsite.com
Images = i.img.mainsite.com

MainDirectory/Images

But that is not the problem.. i think is URL Rewriting or CNAME problem
Reply
#4

http://serverfault.com/questions/203.../203804#203804
Reply
#5

Yes it can be solved through HTaccess file, just check out the code to redirect non-www to www version or vice versa, which u would prefer.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)