-
Notifications
You must be signed in to change notification settings - Fork 278
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sitemap for multiple domain #24
Comments
Hi chamnap, You are in luck! If you had asked a little while ago, it would have been very difficult, but recent changes I've made make it very easy. I'm still working on the API, so this consider this experimental stuff. Put this in your config/sitemap.rb and refresh your sitemaps. You'll get an exception at the end, but the sitemaps should be created ok. Alternatively you can add
|
Alright, thanks for reply. I figured out by go through the code base, but a slicely different approach. |
Closing |
It seems it doesn't work in a loop. The first domain is generated correctly in sitemap file, but the rest doesn't (only example.com). |
What do you mean "it doesn't work in a loop"? You'll have to paste your code for me to understand what you mean. The example I gave works fine, as does this:
|
Well, the above code works fine, except in the sitemap file of the second and third domain name, the generated domain name is http://example.com/. |
Hmm, yeah the host in the sitemap file e.g. sitemap1.xml is correct, but the host in the index file is not. I'll take a look when I get a chance. |
I have a rails 2.3.2 application which handles around 5 domains. I just can't figure out how to use well. I need to create a new rake task to generate sitemap for a domain, put it in a separate folder. I need a rake task to generate sitemap for all domains, put them in a separate folder (for each domain).
Any idea?
The text was updated successfully, but these errors were encountered: