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 # # Turn off mod_security filtering. SecFilterEngine Off # The below probably isn't needed, but better safe than sorry. SecFilterScanPOST Off # # 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 # # RewriteEngine on # /forum: index page RewriteRule ^forum(\/?)$ %1/index.php [L] # /forum/1: forum with id 1 RewriteRule ^forum\/([0-9]+)(\/?)$ %1/forumdisplay.php?fid=$1 [L,QSA] # /forum/1/seite/2: page 2 of forum with id 1 RewriteRule ^forum\/([0-9]+)\/seite\/([0-9]+)(\/?)$ %1/forumdisplay.php?fid=$1&page=$2 [L,QSA] # /thema/15: thread 15 RewriteRule ^thema\/([0-9]+)(\/?)$ %1/showthread.php?tid=$1 [L,QSA] # /thema/15/seite/5: page 5 of thread 15 RewriteRule ^thema\/([0-9]+)\/seite\/([0-9]+)(\/?)$ %1/showthread.php?tid=$1&page=$2 [L,QSA] # /thema/3/beitrag/19: post 19 of thread 3 RewriteRule ^thema\/([0-9]+)\/beitrag\/([0-9]+)(\/?)$ %1/showthread.php?tid=$1&pid=$2 [L,QSA] # /beitrag: goto custom error page RewriteRule ^beitrag(\/?)$ %1/error.php?code=404&uri=/beitrag [L,QSA] # /beitrag/1329: post 1329 RewriteRule ^beitrag\/([0-9]+)(\/?)$ %1/showthread.php?pid=$2 [L,QSA] RewriteRule ^thema\/([0-9]+)\/lastpost$ %1/showthread.php?tid=$1&action=lastpost [L,QSA] RewriteRule ^thema\/([0-9]+)\/nextnewest$ %1/showthread.php?tid=$1&action=nextnewest [L,QSA] RewriteRule ^thema\/([0-9]+)\/nextoldest$ %1/showthread.php?tid=$1&action=nextoldest [L,QSA] RewriteRule ^thema\/([0-9]+)\/newpost$ %1/showthread.php?tid=$1&action=newpost [L,QSA] # /ankündigung/17: announcement 17 RewriteRule ^ankündigung\/([0-9]+)(\/?)$ %1/announcements.php?aid=$1 [L,QSA] # /nachrichten: private messages RewriteRule ^nachrichten(\/?)$ %1/private.php [L,QSA] # /benutzer: user control panel RewriteRule ^benutzer(\/?)$ %1/usercp.php [L,QSA] # /moderation: user control panel RewriteRule ^moderation(\/?)$ %1/modcp.php [L,QSA] # /benutzer/1: member profile of UID 1 RewriteRule ^benutzer\/([0-9]+)(\/?)$ %1/member.php?action=profile&uid=$1 [L,QSA] RewriteRule ^kalender\/([0-9]+)(\/?)$ %1/calendar.php?calendar=$1 [L,QSA] RewriteRule ^kalender\/([0-9]+)\/datum\/([0-9]+)\/([0-9]+)(\/?)$ %1/calendar.php?calendar=$1&year=$2&month=$3 [L,QSA] RewriteRule ^kalender\/([0-9]+)\/datum\/([0-9]+)\/([0-9]+)\/([0-9]+)(\/?)$ %1/calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA] RewriteRule ^kalender\/([0-9]+)\/woche\/(n?[0-9]+)(\/?)$ %1/calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA] RewriteRule ^event\/([0-9]+)(\/?)$ %1/calendar.php?action=event&eid=$1 [L,QSA] RewriteCond %{SERVER_PORT} !^443$ RewriteRule (.*) https://%{HTTP_HOST}/$1 SetEnv SEO_SUPPORT 1 # # # 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. # AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml