
我是這個網站的新手,我想知道如何讓我的網址保持不變,例如我有一個網址:
http://www.somesite.com/1234/a-b-c
當有人在網址末尾添加額外資訊時,/a-b-c
例如:
http://www.somesite.com/1234/a-sss-vadv-b-c
例如,當網頁載入到瀏覽器中時,該 url 將返回其原始 url。
http://www.somesite.com/1234/a-b-c
有人知道該怎麼做嗎?
答案1
在你的 httpd.conf 中輸入此條目
ErrorDocument 404 http://www.mysite.com