Kod:
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
# Hosting paketinizde, RewriteBase ve RewriteRules özelliklerinin etkin olması gerekli.
RewriteBase /forum/
# ./search.php sorunlarınız geçici çözümler:
# ./.htaccess dosyası için yazma izni vermeniz gerekiyor. (777)
RewriteRule ^([^&]*)&(.*)$ http://www.besyohazirlik.com/forum/$1?$2 [L,QSA,R=301]
# Google SEO 404 Sayfaları:
ErrorDocument 404 /forum/misc.php?google_seo_error=404
# Google SEO Sitemap Dizin:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC]
# Google SEO URL Forumlar:
RewriteRule ^Besyo\-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]
# Google SEO URL Konular:
RewriteRule ^([^./]+)\.html$ showthread.php?google_seo_thread=$1 [L,QSA,NC]
# Google SEO URL Duyurular:
RewriteRule ^Duyuru\-([^./]+)$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]
# Google SEO URL Kullanıcılar:
RewriteRule ^Uye\-([^./]+)$ member.php?action=profile&google_seo_user=$1 [L,QSA,NC]
# Google SEO URL Takvim:
RewriteRule ^Takvim\-([^./]+)$ calendar.php?google_seo_calendar=$1 [L,QSA,NC]
# Google SEO URL Etkinlik:
RewriteRule ^Olay\-([^./]+)$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]
<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/javascript text/css text/html text/xml
</IfModule>
<ifmodule mod_expires.c>
<filesmatch "\.(jpg|gif|png|gif|swf|css|js|ico)$">
ExpiresActive on
ExpiresDefault "access plus 1 year"
</filesmatch>
</ifmodule>