List Info

Thread: sitemaps for subdomains




sitemaps for subdomains
user name
2008-01-02 17:38:20
In my sitemap file, I want to include subdomain links such
as:
http://user1.domain.com,
http://user2.domain.com,
...

But when I specify a URL in "location" method of
the sitemap class, a
"http://example.com"
(or whatever is specified  in the sites contrib
app) is prepended to the URL.

Same with get_absolute_url, too.

How can I add URLs with sub-domains to my sitemap files?


Thanks,
oMat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: sitemaps for subdomains
user name
2008-01-02 18:12:26
Well, I figured out that overriding the "get_urls"
method of the
Sitemap class solves the problem. But, remember to call the
private
__get() method like _Sitemap__get() in your class.

Though, a cleaner solution is appreciated...



On Jan 2, 3:38 pm, omat <o...gezgin.com> wrote:
> In my sitemap file, I want to include subdomain links
such as:http://user1.domain.com,<
a
href="http://user2.domain.com">http://user2.domain.com,
...
>
> But when I specify a URL in "location" method
of the sitemap class, a
> "http://example.com"
(or whatever is specified  in the sites contrib
> app) is prepended to the URL.
>
> Same with get_absolute_url, too.
>
> How can I add URLs with sub-domains to my sitemap
files?
>
> Thanks,
> oMat
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: sitemaps for subdomains
user name
2008-01-02 19:55:14
> How can I add URLs with sub-domains to my sitemap
files?

If you are talking about XML sitemaps, you can't.

>From http://www.example
.com/sitemap.xml, it can't include URLs from
http://subdomain.exampl
e.com.

As the Emperor said, "Well, there it is."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: sitemaps for subdomains
user name
2008-01-03 01:15:54
The sitemaps.org says:

> For instance, if the Sitemap is located at http://www.example
.com/sitemap.xml, it can't include URLs from http://subdomain.exampl
e.com.

But if I place it under "example.com" (without the
"www") it should be
ok for the subdomains.



On Jan 2, 5:55 pm, Peter Rowell <hedron...gmail.com> wrote:
> > How can I add URLs with sub-domains to my sitemap
files?
>
> If you are talking about XML sitemaps, you can't.
>
> Fromhttp://www.example
.com/sitemap.xml, it can't include URLs fromhttp://subdomain.exampl
e.com.
>
> As the Emperor said, "Well, there it is."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


Re: sitemaps for subdomains
user name
2008-01-03 01:31:46
You were right Peter, Google refused the subdomains, even
when the
sitemap file was under "domain.com".

But this doesn't seem logical. If a sitemap can represent
sub
directories, it should be able to represent sub domains
below it
hierarchically.

Thanks for the reply...





On Jan 2, 11:15 pm, omat <o...gezgin.com> wrote:
> The sitemaps.org says:
>
> > For instance, if the Sitemap is located athttp://www.example
.com/sitemap.xml, it can't include URLs fromhttp://subdomain.exampl
e.com.
>
> But if I place it under "example.com"
(without the "www") it should be
> ok for the subdomains.
>
> On Jan 2, 5:55 pm, Peter Rowell <hedron...gmail.com> wrote:
>
> > > How can I add URLs with sub-domains to my
sitemap files?
>
> > If you are talking about XML sitemaps, you can't.
>
> > Fromhttp://www.example
.com/sitemap.xml, it can't include URLs fromhttp://subdomain.exampl
e.com.
>
> > As the Emperor said, "Well, there it
is."
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Django users" group.
To post to this group, send email to django-usersgooglegroups.com
To unsubscribe from this group, send email to
django-users-unsubscribegooglegroups.com
For more options, visit this group at htt
p://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---


[1-5]

about | contact  Other archives ( Real Estate discussion Medical topics )