You could probably do that via mod_proxy and mod_proxy_http, something like:
ProxyRequests Off
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
ProxyPass /blog http://blog.mydomain.com
ProxyPassReverse /foo http://blog.mydomain.com
This will need to be in your server or virtual host config, you will not
be able to do this from htaccess.
- Mike
On 7/10/2010 14:10, Super Steve wrote:
I've got a website that I would like to put a blog on, and I'm
thinking of using Posterous.com. I'm thinking of setting up a
subdomain, i.e. blog.mydomain.com, to access the blog, and Posterous
allows this.
However I've heard that Google considers subdomains to be separate
websites, and so any "Google juice" that the blog will earn won't flow
on and benefit the main website. I've seen it recommended that it's
better to have www.mydomain.com/blog
So, I'm wondering, is is possible to set up the subdomain
blog.mydomain.com but make it look like it's actually www.mydomain.com/blog
via some sort of trickery in Apache .htaccess file?
--
NZ PHP Users Group: http://groups.google.com/group/nzphpug
To post, send email to [email protected]
To unsubscribe, send email to
[email protected]