213 reputation
28
bio website
location
age
visits member for 3 years, 10 months
seen Sep 23 at 13:04

Apr
1
comment htaccess preventing sqlite database being downloaded
at this point no, but this is making me mad that I can't get htaccess to work how it should
Mar
2
comment CSS Intelligent Merger
Correct, the tool gives you priority which file to use if you come up with matching attributes. Test1.css would have the priority
Feb
25
comment What are some client-side sitemap generators?
I accepted this answer based on the long list to choose from, of which I am sure one will suit me.
Feb
25
comment What are some client-side sitemap generators?
@RandomBen I felt "generator" was a tag that should be created based on the posts about "sitemap generators" and other generators.
Feb
24
comment Rewrite for robots.txt and favicon.ico
The point of doing that is so I can then use just rewrite rules and it would be against the whole URL, including the HTTP_HOST and the path component.
Feb
24
comment Rewrite for robots.txt and favicon.ico
Correct- My understanding is that RewriteRules are only processed if the preceding RewriteCond are met. Therefore if the HTTP_HOST ends with mysite.com, extract the subdomain if it can, if it can then see if the subdomain exists as a home directory, if it does take the whole path component of the URI and rewrite the path with the host involed.. so you are right.. if the request was test.mysite.com/mystuff/mypage.html then it would be rewritten to test.mysite.com/test.mysite.com/mystuff/mypage.html, of which test.mysite.com/mystuff/mypage.html is now the path compnent...
Feb
23
comment Rewrite for robots.txt and favicon.ico
However on the optional www, the %{HTTP_HOST}$1 above attaches more to the HTTP_HOST. Therefore if they attempted www.test.mysite.com/media/picture.jpg it would extract test as the subdomain and then apply the request to the file /home/test/xxx/media/picture.jpg. I guess I am more confused on the way you word things, I would understand better with examples.
Feb
23
comment Rewrite for robots.txt and favicon.ico
I am a bit confused on your answers or critiques. The ^(.+)favicon.ico is there to catch any request to favicon.ico such as /forums/favicon.ico and make sure it exists. I guess this part is a bit shaky and not well though out, as thats the problem of the question...
Feb
22
comment Rewrite for robots.txt and favicon.ico
Yes mysite.com and www.mysite.com are the same base IP. All the sites that need to be routed through this vhost range from that same IP to 50 others.
Feb
22
comment Rewrite for robots.txt and favicon.ico
I added the complete vhost