Url重写执行重定向而不是源映射

I installed a wordpress on a server and put it under the folder apps/wordpress/.

What I want to do is the make the wordpress available using te url http://mydomain.com/blog instead of the url http://mydomain.com/apps/wordpress

In order to do that I wrote a .htaccess file that I put at the root of my server. Here is the file :

RewriteEngine    on
RewriteBase      /
RewriteRule      ^blog$    blog/  [PT]
RewriteRule      ^blog     /app/wordpress  [PT]

The problem is that instead of giving me the content of apps/wordpress, the browser receive a 301 and then redirect to apps/wordress. What I want to do is to hide the apps/wordpress url behind /blog not doing a redirect.

Any ideas how to do this ?

Ok I don't know why, but this is working:

RewriteRule ^blog$ blog/
RewriteRule ^blog/(.*) /apps/wordpress/$1

Doesn't matter, it's working now :)

Try using the Alias directive instead, which would be:

   Alias /blog   /<path to htdocs>/app/wordpress