MyBB Community Forums

Full Version: How to get Search Engine Friendly Url
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
Hi all,
My name is Hari Kishan, i am having a website hosted in yahoo and it doesnt give access to htaccess.I want search engine friendly url for my forum developed using mybb.
The link is http://www.dallasdilse.com/forum
Please help me to solve this problem.
Thanks in advance
got to AdminCP
Configuration ---> Server and Optimization Options
Select Enable under search engine friendly URLs
Remeber to login to your ftp and rename htaccess.txt to .htaccess at your boards root folder.

whoops hold on just read the part about you being on yahoo. wordpress has a little work around for permalinks.. but i think thats very different to rewriting urls i honestly dont think you can do it without an htaccess file.
Unless it's already called .htaccess, you probably can't, no.
can be applied for Lighttpd?
I've already did the search engine friendly but my forum is still not SEO friendly...hmmm

I've used wordpress on this same host it has .htaccess and it is possible to have friendly urls just by changing to 777

thoughts?
So you've renamed it to .htaccess, turned the SEF URLs on in the ACP, but it hasn't done anything...?? Haven't been very specific with your post really... Undecided
(2009-04-15, 11:32 PM)MattRogowski Wrote: [ -> ]So you've renamed it to .htaccess, turned the SEF URLs on in the ACP, but it hasn't done anything...?? Haven't been very specific with your post really... Undecided

yes that is correct

with permission 777

here's the .htaccess
Options -MultiViews +FollowSymlinks -Indexes

#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
#   MediaTemple, it is known to cause random Internal Server
#   errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
	# Turn off mod_security filtering.
	SecFilterEngine Off

	# The below probably isn't needed, but better safe than sorry.
	SecFilterScanPOST Off
</IfModule>

#
# 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
	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]

	<IfModule mod_env.c>
		SetEnv SEO_SUPPORT 1
	</IfModule>
</IfModule>

#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
	AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
</IfModule>

I need to modify anything?

Enable search engine friendly URLs? I've changed to enabled
ahhh ok

before SEF
http://kampungtraders.com/forumdisplay.php?fid=22

after SEF
http://kampungtraders.com/forum-22.html

I was hoping for
http://kampungtraders.com/general-discussion.html

guess it doesn't work like that isn't it? Huh
(2009-04-15, 11:46 PM)hanzahar Wrote: [ -> ]before SEF
http://kampungtraders.com/forumdisplay.php?fid=22

after SEF
http://kampungtraders.com/forum-22.html

I was hoping for
http://kampungtraders.com/general-discussion.html

guess it doesn't work like that isn't it? Huh

By default you get forum-22.html. If you want some other SEF URL, you need to install a third-party SEO plugin, for example: http://spicefuse.com/mybb-seo-1-0-beta-t-5.html
thanks,I have tried this plugin 1.1 beta but still not working...

well,I guess I have to ask the author
My
(2009-04-16, 01:38 AM)Dennis Tsang Wrote: [ -> ]
(2009-04-15, 11:46 PM)hanzahar Wrote: [ -> ]before SEF
http://kampungtraders.com/forumdisplay.php?fid=22

after SEF
http://kampungtraders.com/forum-22.html

I was hoping for
http://kampungtraders.com/general-discussion.html

guess it doesn't work like that isn't it? Huh

By default you get forum-22.html. If you want some other SEF URL, you need to install a third-party SEO plugin, for example: http://spicefuse.com/mybb-seo-1-0-beta-t-5.html
Pages: 1 2