Wednesday, November 19, 2014

sitemap generation in websphere commerce

Step I Login to Admin console as Site Admin.
 
Step II Navigate to Admin Consoleà Scheduler (Screenshot Attached below)
 
 

 
Step III
 
Select New,
 

 
 
 
 
Step IV
 
From the Dropdown of Job Command select , “SitemapGenerateand give the Job parameters
Passed storeId and catalogId for which we want the sitemap file,
 
We will create two jobs,
 
For first job,
 
In our case it was “storeId=10151&catalogId=10001” (without quotes), in the Start date give the date on which you want the scheduler to run, same for time field, give a relatively closer time.
 

 
Click ok and check the jobs status till its complete.


 
 
 


 
 
Once first job is complete schedule the second job, repeat step 5(III) onwards with job parameter as ‘storeId=10152&catalogId=10001
 
For each store we will get a separate sitemap_<<storeId>>.xml file inside WASPROFILE/temp
 
(In Dev environment it was located under “/opt/was7dv/AppServer/profiles/comm7dv01/temp’)
 
There will be two files sitemap_10151.xml and sitemap_10152.xml. We will move these two files inside WC_eardir /Stores.war
 
(DEV path /opt/was7dv/AppServer/profiles/comm7dv01/installedApps/WC_comm7dv01_cell/WC_comm7dv01.ear/Stores.war).

Now we will create an index file which will have entries of both these files. This index file will be submitted to google. Replace the <<severname>> part with the current server name
Name the file as sitemap.xml
 
<?xml version="1.0" encoding="UTF-8" ?>
<sitemap>
<loc>http://<<servername>>/webapp/wcs/stores/sitemap_10151.xml</loc>
<lastmod>2012-08-03</lastmod>
</sitemap>
<sitemap>
<loc>http://<<servername>>/webapp/wcs/stores/sitemap_10152.xml</loc>
<lastmod>2012-08-03</lastmod>
</sitemap>
</sitemapindex>
 
Step V
The sitemap.xml file is placed in the following directory for access by search engines:
·         WC_eardir /Stores.war
·         WCDE_installdir /workspace/Stores/WebContent
 
  • Copy this sitemap.xml in webserver location Stores.war.
 
( In Dev inside “/opt/commerce7dv/webcontent/Stores.war”)
  • And WC_eardir /Stores.war
 
(In DEV inside /opt/was7dv/AppServer/profiles/comm7dv01/installedApps/WC_comm7dv01_cell/WC_comm7dv01.ear/Stores.war )
 
 
 
 
 
Step VI
 
Access the sitemap.xml
 
We can access the file by typing the file name from our store URL ,
 

No comments:

Post a Comment