1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

MyBB HTML Sitemap

Discussion in 'White Hat SEO' started by jovica888, Nov 22, 2013.

  1. jovica888

    jovica888 Regular Member

    Joined:
    Dec 15, 2011
    Messages:
    271
    Likes Received:
    47
    This will create a page with all your URLs and then you can put this URL in your footer and then u can achieve better internal linking


    Code:
    http://www.mydomain.com/sitemap/1

    OK Firts you need to upload sitemap.php file at / (root)


    open this file and edit line 51


    Code:
     $data = ('<a href="http://www.mydomain.com/'.$post.'">'.$name.'</A>')

    Add you domain here :)


    Go to AdminPanel > Templates > Add Template
    Template Name: sitemap
    Content:
    Code:
    <html><head><title>Sitemap page {$mybb->input['page']} - Forum Name</title>{$headerinclude}</head><body>{$header}<hr><br><center>{$sitemap}</center><br><BR><hr>{$footer}</body></html>

    After this u need to add this line to .htaccess file
    Code:
    RewriteRule sitemap/(.*) sitemap.php?page=$1

    After this go to footer templates and add your sitemap link somewhere you want ;)


    Demo:
    Code:
    http://www.weblasters.com/sitemap/1

    Download sitemap.php;
    Code:
    http://www17.zippyshare.com/v/88777563/file.html

    That is it :sleepy:
     
    • Thanks Thanks x 2
  2. 1337python

    1337python Regular Member

    Joined:
    Jun 18, 2013
    Messages:
    392
    Likes Received:
    235
    Location:
    127.0.0.1
    Nice share! Bookmarked!
     
  3. divok

    divok Senior Member

    Joined:
    Jul 21, 2010
    Messages:
    1,015
    Likes Received:
    634
    Location:
    http://twitter.com/divok
    why are you posting same thread on every forum ? Warrior , digitalpoint & mybb boards ?
     
  4. jovica888

    jovica888 Regular Member

    Joined:
    Dec 15, 2011
    Messages:
    271
    Likes Received:
    47
    Because this is something that will everybody use ;)
     
  5. phobia2381

    phobia2381 Junior Member

    Joined:
    Nov 3, 2012
    Messages:
    178
    Likes Received:
    258
    Location:
    Error 404! The Freedom you were looking for could
    Why wouldn't he there different forums..

    Anyway bookmarked this also, I'm just started today installing mybb on my site so this will come in handy, Thanks OP..
     
  6. Verilog

    Verilog Newbie

    Joined:
    Jun 11, 2012
    Messages:
    18
    Likes Received:
    1
    Gender:
    Male
    Home Page:
    It is nice work mate :)