MyBB Community Forums

Full Version: Enable search engine friendly URLs
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
try to Enable search engine friendly URLs inmybb 1.6, forum thread and topic display 404 - File or directory not found.
how can solve this problem ?
Make sure you renamed htaccess.txt to .htaccess.
yes i make a file .htaccess put in forum directory,
Please given me correct loction of the file
creat on forum directory or creat in http directory.
my htaccess file
Quote:#

# MyBB "search engine friendly" URL rewrites

# - Note, for these to work with MyBB please make sure you have

# the setting enabled in the Admin CP and you have this file

# named .htaccess

#

<IfModule mod_rewrite.c>

RewriteEngine on
Rewritebase /forum/
RewriteRule ^forum-([0-9]+).html forumdisplay.php?fid=$1 [L,QSA]

RewriteRule ^forum-([0-9]+)-page-([0-9]+).html forumdisplay.php?fid=$1&page=$2 [L,QSA]



RewriteRule ^thread-([0-9]+).html showthread.php?tid=$1 [L,QSA]

RewriteRule ^thread-([0-9]+)-page-([0-9]+).html showthread.php?tid=$1&page=$2 [L,QSA]

RewriteRule ^thread-([0-9]+)-lastpost.html showthread.php?tid=$1&action=lastpost [L,QSA]

RewriteRule ^thread-([0-9]+)-nextnewest.html showthread.php?tid=$1&action=nextnewest [L,QSA]

RewriteRule ^thread-([0-9]+)-nextoldest.html showthread.php?tid=$1&action=nextoldest [L,QSA]

RewriteRule ^thread-([0-9]+)-newpost.html showthread.php?tid=$1&action=newpost [L,QSA]

RewriteRule ^thread-([0-9]+)-post-([0-9]+).html showthread.php?tid=$1&pid=$2 [L,QSA]



RewriteRule ^post-([0-9]+).html showthread.php?pid=$1 [L,QSA]



RewriteRule ^announcement-([0-9]+).html announcements.php?aid=$1 [L,QSA]



RewriteRule ^user-([0-9]+).html member.php?action=profile&uid=$1 [L,QSA]



RewriteRule ^calendar-([0-9]+).html calendar.php?calendar=$1 [L,QSA]

RewriteRule ^calendar-([0-9]+)-year-([0-9]+).html calendar.php?action=yearview&calendar=$1&year=$2 [L,QSA]

RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+).html calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]

RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+).html calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]

RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+).html calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]



RewriteRule ^event-([0-9]+).html calendar.php?action=event&eid=$1 [L,QSA]
It should be placed in your forum root.
vikram, please stop spamming, you already made any number of threads on this

http://community.mybb.com/thread-83533.html
http://community.mybb.com/thread-83533-p...#pid609329
Seeing as no rewrite rules work for you, it seems that your host isn't capable of using them.
thanks mattrogowski & frostschutz , Please close my all 404 Releted thread, my problem solved by my host,i am use window2008 server and they rewrite it by my rule.