Results 1 to 8 of 8

Change Sitemap.xml file name & location?

This is a discussion on Change Sitemap.xml file name & location? within the General Discussion forums, part of the vBSEO Google/Yahoo Sitemap category; Normally I jump right in and tweak files. But being that its difficult to know if I goofed something up ...

  1. #1
    Junior Member
    Real Name
    Morty
    Join Date
    Aug 2007
    Location
    California
    Posts
    4
    Liked
    0 times

    Change Sitemap.xml file name & location?

    Normally I jump right in and tweak files. But being that its difficult to know if I goofed something up and Search engines are struggling with my sitemap files, I chose to come ask before trying.


    By default vbseo sitemap creates files like:

    sitemap_10.xml

    and the typical

    sitemap_index.xml

    I want these files to automatically spit out as:

    sitemap10.xml

    and the index to read as

    sitemap.xml

    In addition, I want these puppies to dump out into the root of my site, not inside the /forums/vbseo_sitemap/data/ directory.

    And by doing the above dumping in the root of the site, I'd like them to NOT be in GZ format but the actual xml file being dumped into my root.

    Am I trying to reinvent the wheel here?

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

    you will have to modify vbseo_sitemap_functions.php file for that, although there is no need to change sitemap filenames.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  3. #3
    Junior Member
    Real Name
    Morty
    Join Date
    Aug 2007
    Location
    California
    Posts
    4
    Liked
    0 times
    Thank you.

    And the reason I want to do the name changing is due to the previous generator I had made the files the way I'm wanting to rename to and its easier to change my stuff than to go back around the web again and let all the engines know of my new sitemap file.

    Even though I do have a robot.txt directing.

    Anywho, thanks!

  4. #4
    Junior Member
    Real Name
    WarDog
    Join Date
    Oct 2007
    Location
    United States
    Posts
    7
    Liked
    0 times

    Question

    Quote Originally Posted by Oleg Ignatiuk View Post
    Hello,

    you will have to modify vbseo_sitemap_functions.php file for that.
    Can you tell me where to find this and what I need to change it to in the vbseo_sitemap_functions.php file to make it work in my ../forums root?

    I ask this as I cannot get google to read the files from the ../data folder (permission denied error). I have the data folder chmod 777 but the .htaccess file says deny all and that file was part of your upload files which I removed deny for all and it still doesn't work. Getting the files to write to my ../forums root would be fantastic. I half to move them manually everyday and it is a real pain. :(
    If I can get this working properly, will hinge on me purchasing vBSEO 3.0 as I am having issues purchasing especially when I cant even get your freeware version of the sitemap generator to work.

    Thanks in advance.
    WD

  5. #5
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    You should search for "sitemap_" text in filename variable in the code and replace them with "sitemap".

    You should create .htaccess file in forums folder as described in installation instructions and then you should be able to access sitemaps via forums root.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  6. #6
    Junior Member
    Real Name
    WarDog
    Join Date
    Oct 2007
    Location
    United States
    Posts
    7
    Liked
    0 times
    Quote Originally Posted by Oleg Ignatiuk View Post
    You should search for "sitemap_" text in filename variable in the code and replace them with "sitemap".
    I looked in the vbseo_sitemap_functions.php file and did not see any of the filenames unless something else is used as a name variable and then I haven't a clue.

    Quote Originally Posted by Oleg Ignatiuk View Post
    You should create .htaccess file in forums folder as described in installation instructions and then you should be able to access sitemaps via forums root.
    If you are talking about this RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] then I added that to my ../forums .htaccess file or is it suppose to be added to the ../data folder .htaccess file?

    I was mistaken earlier when I said permission denied error, its file not found error at google.
    The sitemap generator writes the sitemap_index.xml.gz file showing the sitemap_1.xml.gz showing in my ../forums root. If you can tell me how to get the program to write _1.xml showing in the ../data folder it might would work.

    Thanks
    WD

  7. #7
    vBSEO Staff Oleg Ignatiuk's Avatar
    Real Name
    Oleg Ignatiuk
    Join Date
    Jun 2005
    Location
    Belarus
    Posts
    25,689
    Liked
    157 times
    I looked in the vbseo_sitemap_functions.php file and did not see any of the filenames unless something else is used as a name variable and then I haven't a clue.
    You should search for "sitemap_" substring. For instance:
    PHP Code:
               $sm_filename vbseo_ext_gz('sitemap_index.xml'); 
    If you are talking about this RewriteRule ^((urllist|sitemap).*\.(xml|txt)(\.gz)?)$ vbseo_sitemap/vbseo_getsitemap.php?sitemap=$1 [L] then I added that to my ../forums .htaccess file or is it suppose to be added to the ../data folder .htaccess file?
    It should be in forums .haccess. Make sure that your host supports mod_rewrite module.
    Oleg Ignatiuk / Crawlability Inc.
    vBSEO 3.6.0 GOLD Released!
    Unveiling the NEW vBSEO Sitemap Generator 3.0. - available NOW for vBSEO Customers!


  8. #8
    Junior Member
    Real Name
    WarDog
    Join Date
    Oct 2007
    Location
    United States
    Posts
    7
    Liked
    0 times
    M8

    I found the string you were talking about and I don't know what to do with it. What you are saying to do makes no sense to me and I cannot make heads or tails out of it. I could have used a little more help. I am not a programmer!

    I have the other string in the forums .htaccess file and my server supports mod_rewrite module.

    I am just going to continue to move the files manually everyday as I have been, as its apparent you guys do not want to offer that much support and help to this program without me being a subscriber of vBSEO 3.0
    Me getting this program working properly was the teetering point on purchasing 3.0, I think I will pass.

    Thanks

    WD

Similar Threads

  1. Making full site backups
    By FightRice in forum Member Articles
    Replies: 17
    Last Post: 01-05-2008, 08:32 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
  •