.htaccess - Using htaccess to serve sitemap from a remote server -
Whether to show my sitemap on a main server from a remote server
Say Mydomain .com / sitemaps / filename.xml
its content
remoteserver.com/sitemapts/mydomain-sitemap-filename.xml
and how to get it Should I do this in HTACAC?
Thank you ..
Yes, but it must be enabled on the server if If you do not control the server itself, then this may be a problem.
Assuming that it is available, and mod_rewrite
is also available to you, you can do something like a .htaccess
in your site root File:
Revive Engines on Rule Rule ^ sitemaps / (. *) \. Xml $ http://www.example.com/Sitemap/% {HTTP_HOST} -etemap- $ 1.xml [P]
Comments
Post a Comment