English 中文(简体)
如何通过藏匿将目录中的所有档案从深处转移到另一处。
原标题:How to redirect all files in a directory to another in root via htaccess

我想将网站/user的目录上的所有档案(无论有无)转至一份名为temp.php的档案中。

例如,如果用户进入user/send.phpuser/用户/send。 (可能根本不是外派主义者),都转而服从于诱惑。

如何做到这一点?

最佳回答

为此:

RewriteEngine On
RewriteRule ^user/(.*)$ http://domain.com/temp.php [R,L]
问题回答

暂无回答




相关问题
Using SimplePie with CodeIgniter and XAMPP

I am using CodeIgniter 1.7.2 with XAMPP 1.7.2 on a Windows computer. I am trying to make use of SimplePie. I followed all the instructions I could find: a copy of simplepie.inc is in my applications/...

Multiple Sites with common files

I have developed over 50 sites that all use the exact same files other than CSS and IMAGES, I currently duplicate the files each time I create a new site and upload different css and images. What ...

http server validation

I finish a litle http server, writing from scratch. I would like to be sure that my imlementation is conforme to the HTTP specifications. W3C give us tools for HTML/XML conformance, but i see nothing ...

热门标签