具体操作办法(仅适用于apache网络服务器):
文件位置:apache->conf->httpd.conf
请在httpd.conf中使用Alias指令:
Alias /newurl /www/htdocs/oldurl
如:用户访问新的地址example.com/newurl/id34.html 服务器将提供的内容原地址是example.com/www/htdocs/oldurl/id34.html。
注意:Alias只会改变本地URL,如seowhy.com/newurl/id34.html 的/newurl/id34.html 部分,而无法改变URL的主机名称部分(如:http://www.seowhy.com/部分)。若要更改URL的主机名称部分,请使用Redirect或RewriteRule指令。
...