2013-10-24 50 views

回答

2

是的,這是可能的。將此密碼放入root .htaccess

RewriteEngine On 

# it doesn't end with .pdf 
RewriteCond %{REQUEST_URI} !\.pdf 
# URI starts with /directory1/directory2 then redirect 
RewriteRule ^directory1/directory2/(.*)$ /some-where/$1 [L,NC,R] 
+0

工作就像一個魅力!目前還不能接受答案。 –

+0

不客氣,很高興它爲你解決。 – anubhava

相關問題