2012-08-04 20 views

回答

1

在.htaccess:

RewriteEngine On 
RewriteRule ^oldpage.html$ http://yoursite.com/newpage.html [R=301,L] 
+0

謝謝,我想要做^/oldpage \ .html $來打破這段時間嗎? – 2012-08-05 02:29:13

+0

@AlexWaters nope - 它會像答案一樣工作:) – 2012-08-05 02:33:03

2

嘗試Alias

Alias /the/url/path/that/no/longer/exists /physical/path/to/where/files/are 
+0

我不知道我能做到這一點沒有SSH訪問。它是那些便宜的共享服務器之一 – 2012-08-04 23:42:53

+1

您也可以將別名指令放入.htaccess文件中。 – 2012-08-04 23:45:20

+0

我想給兩個=(+ 1s的答案,而不是 – 2012-08-07 09:40:43