MyBB HTML Sitemap

Discussion in 'Forum Management' started by jovica888, Nov 21, 2013.

  1. #1
    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

    http://www.mydomain.com/sitemap/1
    Code (markup):
    OK Firts you need to upload sitemap.php file at / (root)

    open this file end edit line 51

     $data = ('<a href="http://www.mydomain.com/'.$post.'">'.$name.'</A>')
    PHP:
    Add you domain here :)

    Go to AdminPanel > Templates > Add Template
    Template Name: sitemap
    Content:
    <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>
    PHP:
    After this u need to add this line to .htaccess file
    RewriteRule sitemap/(.*) sitemap.php?page=$1
    PHP:
    After this go to footer templates and add your sitemap link somewhere you want ;)

    Demo:
    http://www.weblasters.com/sitemap/1
    Code (markup):
    Download sitemap.php;
    http://www17.zippyshare.com/v/88777563/file.html
    Code (markup):
    That is it :sleepy:
     
    jovica888, Nov 21, 2013 IP