1
我想要做的是将请求http://example.com/tel.php重定向到http://example.com/default/index/tel而不显示任何重定向给用户。我htaccess的这样做:用Apache重写内部URL
RewriteEngine On
RewriteRule ^tel\.php$ /default/index/tel [NC,L]
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
然而重定向显示了其中我试图避免用户(HTTP/1.1 301永久移动)。
如何解决这个问题?
[看这个答案](http://stackoverflow.com/questions/7042234/301-redirect-with-custom-message) –