4 ms·
[Edit: I was responding to a post which suggested that multiple subdirectories would be optimal if they didn't have to share designs. The post has since been d
by patio11 17y ago
[Edit: I was responding to a post which suggested that multiple subdirectories would be optimal if they didn't have to share designs. The post has since been deleted by the author.]
I don't know whether that is a technical limitation, a process limitation, or a phantom limitation. If it is a technical limitation, there are ways to fix it.
For example:
http://www.bingocardcreator.com http://www.bingocardcreator.com
http://www.bingocardcreator.com/abingo/ http://www.bingocardcreator.com/abingo/
http://www.bingocardcreator.com/blog/ http://www.bingocardcreator.com/blog/
These are three subdirectories which I have reasons for running off of distinct (but similar) designs. Two of them are different controllers in Rails, the third is actually a Wordpress blog (PHP) which is actually served from a machine which is physically distinct from the one running Rails. This is accomplished by a bit of layout abusing trickery in Rails and an Nginx config file which takes anything starting with /blog and proxies it to Apache rather than using the standard serve-it-if-exists-on-disk-otherwise-proxy-to-mongrel Rails pattern. (Reverse proxies are like caching and duct tape: if they don't solve the problem you just aren't using enough of them.)
Why are these three all on the same domain? SEO. I want links to A/Bingo or the blog to help build trust for my domain. If they were subdomains, while that would simplify my server configuration a bit, Google would consider them mostly separate entities on the trust graph, such that e.g. a link from ajaxian.com to the A/Bingo code would not help convince Google my bingo card pages were trustworthy.
- ajtaylor 17y agoUpvoted for the reverse proxy quote. :-)