MyBB HTML Sitemap

jovica888

Regular Member
Joined
Dec 15, 2011
Messages
432
Reaction score
96
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:
 
why are you posting same thread on every forum ? Warrior , digitalpoint & mybb boards ?
 
Because this is something that will everybody use ;)
 
why are you posting same thread on every forum ? Warrior , digitalpoint & mybb boards ?

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..
 
Back
Top