SA-MP Forums Archive
URL Rewriting and subdomain - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Other (https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: URL Rewriting and subdomain (/showthread.php?tid=452941)



URL Rewriting and subdomain - iJumbo - 23.07.2013

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?


Re: URL Rewriting and subdomain - Vince - 23.07.2013

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


Re: URL Rewriting and subdomain - iJumbo - 23.07.2013

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

MainDirectory/Images

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


Re: URL Rewriting and subdomain - Sinner - 23.07.2013

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


Re: URL Rewriting and subdomain - freeleon - 24.07.2013

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.