2010-07-12 67 views

回答

0

您有許多子頁面,你可以這樣做:

# 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

+0

但是這件事情與REFER rite無關? HTTP_REFERER還是有些東西? – Sam 2010-07-12 09:46:51