我想要重定向所有的请求从一个推荐人文件夹。这是一个场景。
我想要从http://www.example.com/demo/ex1/*.*到http://www.example.com/ex1/*.*的所有推荐人请求
请帮帮我。
谢谢
发布于 2010-07-12 17:27:15
你有太多的子页面,你不能这样做:
# Redirect old file path to new file path
Redirect /olddirectory/oldfile.html http://mt-example.com/newdirectory/newfile.html或者是因为某些特定的原因?
如果是这样的话,你可以尝试一下,然后得到你的答案。)
# To redirect all users to access the site WITHOUT the www. prefix,
# (http://www.example.com/... will be redirected to http://example.com/...)
# adapt and uncomment the following:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www\.mt-example\.com$ [NC]
RewriteRule ^(.*)$ http://mt-example.com/$1 [L,R=301]如果你想知道这是关于.htaccess的
https://stackoverflow.com/questions/3227159
复制相似问题