Results 1 to 2 of 2

Sitemap issue with categories as sub-domains

This is a discussion on Sitemap issue with categories as sub-domains within the Troubleshooting forums, part of the vBSEO Google/Yahoo Sitemap category; I've set up my categories to act as subdomains, simply because it makes the place more organized and Oleg has ...

  1. #1
    DTV
    DTV is offline
    Member Array
    Real Name
    DTV
    Join Date
    Oct 2006
    Posts
    58
    Liked
    0 times

    Sitemap issue with categories as sub-domains

    I've set up my categories to act as subdomains, simply because it makes the place more organized and Oleg has been a tremendous help with getting this set up and running.

    The problem with the sitemap is that instead of http://category.domain.ext I am getting this inside the sitemap: http://domain.ext.http://category.domain.ext It does redirect to the correct page though, but I was wondering if there was a way to correct this?

    I also currently have the community offline so that I can refine most of the categories. But I do every now and then open it up for some testing purposes (Running as a regular registered user) that I can't do while as an Administrator.

  2. #2
    vBSEO Staff Array Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,818
    Liked
    192 times
    Hello,

    try to add this code in vbseo_add_url() function in vbseo_sitemap_functions.php file:
    FIND:
    PHP Code:
            $lastmod gmdate('Y-m-d\TH:i:s+00:00'$lastmod); 
    ADD BELOW:
    PHP Code:
    $url preg_replace('#.*(http:)#''$1'$url); 
    Oleg Ignatiuk / Crawlability Inc.
    Security bulletin - Patch Level for all supported versions released

    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


Similar Threads

  1. Google Sitemap Error
    By Exitilus in forum Troubleshooting
    Replies: 3
    Last Post: 01-18-2007, 04:23 PM
  2. Memory Problem:
    By TraumTeam in forum Troubleshooting
    Replies: 1
    Last Post: 04-06-2006, 08:24 AM
  3. Moving sitemap folder to root (above /forums) causes issue
    By Ace Shattock in forum Troubleshooting
    Replies: 4
    Last Post: 12-20-2005, 05:18 AM
  4. Replies: 0
    Last Post: 12-17-2005, 01:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •