I had hosted my Drupal CMS blog with the URL as http://example.com/blog.
Being a Java based hosting I have recently taken with a diff hosting provider, he has a different directory structure to keep all the PHP related files into 'php' directory of my user directory. Hence, I had to move my 'blog' directory under 'php' thereby forced to rewrite / redirect my URLs
I had tried the following rules in my httpd.conf.
RewriteRule example.com/blog/(.*) php.example.com/blog/$1 [NC,L] # Prefix a "php." for the blog #RewriteRule example.com/blog/(.*)?$ php.example.com/blog/$1 [NC,L]
But it only redirects my request to the main blog directory -> http://example.com/blog to http://php.example.com/blog. But not to the other and actual URL of blog entries (like the one I mentioned above).