0
服务网站地图是有可能从像它驻留在主服务器上的远程服务器显示我的网站地图使用htaccess的从远程服务器
说 mydomain.com/sitemaps/filename.xml
会从
remoteserver.com/sitemapts/mydomain-sitemap-filename.xml
怎么做呢htaccess的得到它的内容。
谢谢..
服务网站地图是有可能从像它驻留在主服务器上的远程服务器显示我的网站地图使用htaccess的从远程服务器
说 mydomain.com/sitemaps/filename.xml
会从
remoteserver.com/sitemapts/mydomain-sitemap-filename.xml
怎么做呢htaccess的得到它的内容。
谢谢..
是的,但它要求mod_proxy
已在服务器上启用。如果你自己不控制服务器,这可能是一个问题。
如果存在的话,虽然,mod_rewrite
也提供给你,你可以在一个.htaccess
文件像这样在您的网站的根:
RewriteEngine On
RewriteRule ^sitemaps/(.*)\.xml$ http://www.example.com/sitemaps/%{HTTP_HOST}-sitemap-$1.xml [P]
非常感谢..我会尝试这一个..是的,最有可能的mod_rewrite是在服务器上进行的。 – Jrubins 2010-08-04 06:33:48