Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Use SEO friendly links!
#1
Mybb allows to configure SEO friendly links with a few rewrite rules to the nginx.conf

Just add this to the nginx.conf:
Code:
rewrite ^/MyBB/forum-([0-9]+).html$ /MyBB/forumdisplay.php?fid=$1; rewrite ^/MyBB/forum-([0-9]+)-page-([0-9]+).html$ /MyBB/forumdisplay.php?fid=$1&page=$2; rewrite ^/MyBB/thread-([0-9]+).html$ /MyBB/showthread.php?tid=$1; rewrite ^/MyBB/thread-([0-9]+)-page-([0-9]+).html$ /MyBB/showthread.php?tid=$1&page=$2; rewrite ^/MyBB/thread-([0-9]+)-lastpost.html$ /MyBB/showthread.php?tid=$1&action=lastpost; rewrite ^/MyBB/thread-([0-9]+)-nextnewest.html$ /MyBB/showthread.php?tid=$1&action=nextnewest; rewrite ^/MyBB/thread-([0-9]+)-nextoldest.html$ /MyBB/showthread.php?tid=$1&action=nextoldest; rewrite ^/MyBB/thread-([0-9]+)-newpost.html$ /MyBB/showthread.php?tid=$1&action=newpost; rewrite ^/MyBB/thread-([0-9]+)-post-([0-9]+).html$ /MyBB/showthread.php?tid=$1&pid=$2;

rewrite ^/MyBB/post-([0-9]+).html$ /MyBB/showthread.php?pid=$1;

rewrite ^/MyBB/announcement-([0-9]+).html$ /MyBB/announcements.php?aid=$1;

rewrite ^/MyBB/user-([0-9]+).html$ /MyBB/member.php?action=profile&uid=$1;

rewrite ^/MyBB/calendar-([0-9]+).html$ /MyBB/calendar.php?calendar=$1; rewrite ^/MyBB/calendar-([0-9]+)-year-([0-9]+).html$ /MyBB/calendar.php?action=yearview&calendar=$1&year=$2; rewrite ^/MyBB/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+).html$ /MyBB/calendar.php?calendar=$1&year=$2&month=$3; rewrite ^/MyBB/calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+).html$ /MyBB/calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4; rewrite ^/MyBB/calendar-([0-9]+)-week-(n?[0-9]+).html$ /MyBB/calendar.php?action=weekview&calendar=$1&week=$2;

rewrite ^/MyBB/event-([0-9]+).html$ /MyBB/calendar.php?action=event&eid=$1;

OFFICIAL guide: https://docs.mybb.com/1.8/administration...ndly-URLs/
The nomenclature of Course C Hosting origins from the very potent C Course IPs these are accountable to influence the performance cheap windows vps of sites in Seo hosting and online marketing. With out the Course C IPs, Seo hosting is truly not possible.
Reply
#2
PLease explain more. 


# Need help?  PM me or any helping admin.
Reply
#3
@youssefbasha : check the updated post.

This thread after rewriting will appear as https://www.freevps.club/thread-2882.html

Must better than https://www.freevps.club/showthread.php?...5#pid21325
The nomenclature of Course C Hosting origins from the very potent C Course IPs these are accountable to influence the performance cheap windows vps of sites in Seo hosting and online marketing. With out the Course C IPs, Seo hosting is truly not possible.
Reply
#4
I don't think Google cares. I checked webmaster tools and there are no problems reported because of our URLs. I could try it and see what happens.
Reply
#5
@coreyman : do try it, use the doc link above, you may have to remove the ^/Mybb/some.php to ^/some.php since we are not running on a folder.
The nomenclature of Course C Hosting origins from the very potent C Course IPs these are accountable to influence the performance cheap windows vps of sites in Seo hosting and online marketing. With out the Course C IPs, Seo hosting is truly not possible.
Reply
#6
(12-10-2016, 01:14 PM)coreyman Wrote: I don't think Google cares. I checked webmaster tools and there are no problems reported because of our URLs. I could try it and see what happens.

Same thing here. No problems whatsoever, regardless of links used.
_____________________________________________________
Dumitru
Studio Azura
Reply
#7
https://www.freevps.club/thread-2882-Use...links.html
or
https://www.freevps.club/2882-Use-SEO-fr...links.html

will be much better for SEO, it's allowed by MyBB, I can't remember it is in .htaccess or Settings but I am sure that MyBB has this function.
Example website: https://csomod.com/thread-cso-server-voting.html
Reply


Forum Jump:


Users browsing this thread:
1 Guest(s)