數位行銷
AJAX – DJC Sitemap: Building a Google-Friendly Foundation for SEO
This AJAX – DJC Sitemap plugin seamlessly integrates various content sources. It not only effectively solves indexing issues for complex websites but also ensures your content is correctly and completely indexed by Google and other search engines, making it an essential tool for website optimization.
Unlike traditional sitemaps, this plugin can include content from **DJ-Catalog2** product pages, Joomla articles, and menu items all at once. It generates XML formatted to search engine standards and supports Sitemap Index pagination, ensuring large websites run smoothly. This module means your web design is no longer limited by content diversity, guaranteeing your site is not only beautiful but also highly search engine friendly.
AJAX – DJC Sitemap Plugin
Joomla 4 / 5 Download
(1) DJC Sitemap Plugin Features
-
Multi-Source Integration: Covers DJ-Catalog2 (products / categories / manufacturers), Joomla articles, and Joomla frontend menus.
-
Strict XML Output:
format=rawclears the output buffer and correctly sendsContent-Type: application/xml, preventing Search Console from misidentifying it as HTML. -
Sitemap Index Pagination: Automatically paginates for large sites (default 5,000 URLs per page), allowing search engines to follow the index and crawl the full list.
-
HTML Index Page:
format=html&type=indexgenerates a clickable table for easy human viewing; it also provides HTML previews for different page types. -
Real-Time Sync: No need to manually rebuild files; content updates are reflected instantly.
-
SEF / Itemid Friendly: Can force a specific Itemid to ensure DJ-Catalog2 links follow the correct menu structure.
-
Multi-Table Structure Compatibility: Automatically detects available date fields (e.g.,
modified_time / created_time / created / modified) to reliably populatelastmod.
(2) Configurable Parameters
This interface allows you to set the content sources and behavior of the Sitemap.
Content Source Options:
-
Include products: Choose whether to include product pages from the DJ-Catalog2 website in the Sitemap.
-
Include categories: Choose whether to include product category pages from DJ-Catalog2 in the Sitemap.
-
Include producers: Choose whether to include producer pages from DJ-Catalog2 in the Sitemap.
-
Include Joomla articles: Choose whether to include built-in Joomla content in the Sitemap.
-
Include Joomla menus: Choose whether to include frontend menu items in the Sitemap.
Sitemap Settings:
-
URLs per sitemap page: Default value is 5000. This field sets the number of URLs for each Sitemap file, adhering to Google's best practices.
-
Force Itemid for DJ-Catalog2: This option ensures all DJ-Catalog2 product links use a specific menu ID, avoiding duplicate URL issues.
-
changefreq: Default value is daily. This is a recommended value to tell search engines the expected update frequency of the page content.
-
priority: Default value is 0.5. A value between 0.0 and 1.0 that indicates a page's importance relative to other pages on the site.
(3) Applicable Scenarios
- Websites with both "product content" and "article content" that need to be fully included in a single Sitemap.
- Sites that need a stable XML for Google/Bing crawling, as well as a human-readable view page.
- Websites with a large number of pages that require pagination and real-time updates.
(4) Installation and Activation
- Backend → Extensions → Install → Upload
plg_ajax_djcsitemap_v1.3.4.zip. - Enable the AJAX – DJC Sitemap plugin on the plugin management page.
- In the plugin settings, select the sources to include, adjust the number of pages, and set
changefreq/priority; set the Force Itemid if necessary.
(5) Common URLs
-
XML Sitemap Index (for search engine submission):
https://yourdomain.com/index.php?option=com_ajax&plugin=djcsitemap&format=raw&type=index -
HTML Index Page (for human viewing):
https://yourdomain.com/index.php?option=com_ajax&plugin=djcsitemap&format=html&type=index
(6) Setting Up a Short URL
Setting up a short URL for your **Sitemap** not only makes the URL look more professional but also makes it easier to submit to Google Search Console. This typically involves creating a custom link in your website's backend to convert the long URL into a short one.
Here are the steps to set up a short URL for your Sitemap:
-
Create a new "Menu Item":
In the Joomla backend, navigate to Menus → Main Menu or another menu, and click the "New" button. -
Set the menu item type to "URL":
Menu Title:Sitemaporsitemap.xml.
Alias:sitemap.xml. This alias will become part of the short URL.
Menu Item Type: Select "External URL". -
Enter the long Sitemap URL:
Paste the long URLindex.php?option=com_ajax&plugin=djcsitemap&format=raw&type=indexinto the "Link" field. -
Save and check the URL:
Click "Save", and your short URL will behttps://yourdomain.com/index.php/sitemap-xml. -
Submit to Google Search Console:
Submit the short URL to Google Search Console to help Google quickly find and index your Sitemap.
(7) Search Console and robots.txt
-
On the Sitemaps page in Google Search Console, submit your short URL:
https://yourdomain.com/index.php/sitemap-xml. -
Add the following line to your
robots.txtfile:Sitemap: https://yourdomain.com/index.php/sitemap-xml.
Frequently Asked Questions (FAQ)
Q1: What is a Sitemap? Why does my website need one?
A Sitemap is like a directory for your website; it lists all the URLs of your site's important pages. Having a Sitemap helps Google and other search engines discover, crawl, and index your website content more efficiently, which is crucial for improving SEO rankings, especially for websites with a large volume of content or frequent updates.
Q2: How is the AJAX – DJC Sitemap plugin different from a traditional sitemap?
Traditional sitemap plugins usually only include basic Joomla articles or menu pages. However, the unique feature of the AJAX – DJC Sitemap plugin is its seamless integration with multiple content sources, particularly DJ-Catalog2 products, categories, and manufacturer pages. This allows all content types to be included in a single Sitemap, solving the indexing problems of complex websites.
Q3: Why does this plugin prevent Google Search Console from misidentifying it as HTML?
The "Strict XML Output" feature of this plugin is key. It uses the format=raw command to forcefully clear all output buffers and set the correct Content-Type: application/xml header. This ensures the server sends pure XML content to Google, without any accompanying HTML code, thus preventing Search Console from misinterpreting the Sitemap as an HTML page and causing errors.
Q4: Why should I set up a short URL for my Sitemap?
Setting up a short URL for your Sitemap (e.g., sitemap.xml) has two main benefits: First, it makes the URL look cleaner and more professional, making it easier for you to remember and submit manually. Second, these short URLs align better with the search engines' standard format, helping Google Search Console to read and process your Sitemap more smoothly and efficiently, improving indexing speed.
Q5: How does this plugin help with SEO for large websites?
For large websites, a single Sitemap file might exceed Google's limit of 50,000 URLs. This plugin features "Sitemap Index Pagination," which automatically splits the Sitemap into multiple smaller files (defaulting to 5,000 URLs per page). You only need to submit the main Sitemap Index to Google, and it will automatically follow the index to crawl all the individual pages, ensuring that all of your website's content is fully indexed without any omissions.
