Rewriting image directory for a dynamic subdomain |
[eluser]johncook[/eluser]
I'm having htaccess issues. I want to rewrite subdomains so that: http://subdomain.domain.com/ rewrites to http://www.domain.com/page.php I also want to rewrite the subdomain's image directory into a subdirectory in the main images directory. For example: http://subdomain.domain.com/images/pic.jpg rewrites to http://www.domain.com/images/subdomain/pic.jpg To do this, I used the following htaccess code: Code: # rewrite any subdomain non-images to page.php Any html or php pages redirect fine but any jpg or gif files generate an Internal Server Error. Any tips on what I did wrong? |
Messages In This Thread |
Rewriting image directory for a dynamic subdomain - by El Forum - 03-03-2009, 06:03 AM
Rewriting image directory for a dynamic subdomain - by El Forum - 03-03-2009, 06:21 AM
Rewriting image directory for a dynamic subdomain - by El Forum - 03-03-2009, 03:05 PM
Rewriting image directory for a dynamic subdomain - by El Forum - 03-03-2009, 03:23 PM
Rewriting image directory for a dynamic subdomain - by El Forum - 03-03-2009, 05:38 PM
Rewriting image directory for a dynamic subdomain - by El Forum - 03-03-2009, 07:25 PM
Rewriting image directory for a dynamic subdomain - by El Forum - 03-03-2009, 07:54 PM
Rewriting image directory for a dynamic subdomain - by El Forum - 03-03-2009, 08:00 PM
Rewriting image directory for a dynamic subdomain - by El Forum - 03-03-2009, 08:58 PM
Rewriting image directory for a dynamic subdomain - by El Forum - 03-03-2009, 09:18 PM
Rewriting image directory for a dynamic subdomain - by El Forum - 03-03-2009, 09:24 PM
|