-php5.4 .php
#
# 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 ^dzial-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
RewriteRule ^dzial-([0-9]+)-strona-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]
RewriteRule ^watek-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
RewriteRule ^watek-([0-9]+)-strona-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
RewriteRule ^watek-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
DirectoryIndex portal.php RewriteRule ^watek-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
RewriteRule ^watek-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
RewriteRule ^watek-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
RewriteRule ^watek-([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 ^ogloszenie-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]
RewriteRule ^uzytkownik-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]
RewriteRule ^kalendarz-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
RewriteRule ^kalendarz-([0-9]+)-rok-([0-9]+)-miesiac-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
RewriteRule ^kalendarz-([0-9]+)-rok-([0-9]+)-miesiac-([0-9]+)-dzien-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
RewriteRule ^kalendarz-([0-9]+)-rok-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]
RewriteRule ^wydarzenie-([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/javascript text/css text/html text/xml
</IfModule>
# Note: You are able to choose a different name in the Admin CP. If you've done that you need to change it here too
<Files "error.log">
Order Deny,Allow
Deny from all
</Files>
Syntax highlighting powered by GeSHi
Obsługiwane przez net2ftp - a web based FTP client
Przepraszam, źle wkleiłem
[code]
[list=1]
[*][size=medium]AddType application/x-httpd-php5.4 .php[/size]
[*][size=medium]#[/size]
[*][size=medium]# If mod_security is enabled, attempt to disable it.[/size]
[*][size=medium]# - Note, this will work on the majority of hosts but on[/size]
[*][size=medium]# MediaTemple, it is known to cause random Internal Server[/size]
[*][size=medium]# errors. For MediaTemple, please remove the block below[/size]
[*][size=medium]#[/size]
[*][size=medium]<IfModule mod_security.c>[/size]
[*][size=medium] # Turn off mod_security filtering.[/size]
[*][b][size=medium] SecFilterEngine Off[/size][/b]
[*][size=medium] [/size]
[*][size=medium] # The below probably isn't needed, but better safe than sorry.[/size]
[*][size=medium] SecFilterScanPOST Off[/size]
[*][size=medium] [/size]
[*][size=medium]</IfModule>[/size]
[*][size=medium] [/size]
[*][size=medium]#[/size]
[*][size=medium]# MyBB "search engine friendly" URL rewrites[/size]
[*][size=medium]# - Note, for these to work with MyBB please make sure you have[/size]
[*][b][size=medium]# the setting enabled in the Admin CP and you have this file[/size][/b]
[*][size=medium]# named .htaccess[/size]
[*][size=medium]#[/size]
[*][size=medium]<IfModule mod_rewrite.c>[/size]
[*][size=medium] RewriteEngine on[/size]
[*][size=medium] [/size]
[*][size=medium] RewriteRule ^dzial-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA][/size]
[*][size=medium] RewriteRule ^dzial-([0-9]+)-strona-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA][/size]
[*][size=medium] [/size]
[*][size=medium] RewriteRule ^watek-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA][/size]
[*][b][size=medium] RewriteRule ^watek-([0-9]+)-strona-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA][/size][/b]
[*][size=medium] RewriteRule ^watek-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA][/size]
[*][size=medium] DirectoryIndex portal.php RewriteRule ^watek-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA][/size]
[*][size=medium] RewriteRule ^watek-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA][/size]
[*][size=medium] RewriteRule ^watek-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA][/size]
[*][size=medium] RewriteRule ^watek-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA][/size]
[*][size=medium] [/size]
[*][size=medium] RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA][/size]
[*][size=medium] [/size]
[*][size=medium] RewriteRule ^ogloszenie-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA][/size]
[*][b][size=medium] [/size][/b]
[*][size=medium] RewriteRule ^uzytkownik-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA][/size]
[*][size=medium] [/size]
[*][size=medium] RewriteRule ^kalendarz-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA][/size]
[*][size=medium] RewriteRule ^kalendarz-([0-9]+)-rok-([0-9]+)-miesiac-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA][/size]
[*][size=medium] RewriteRule ^kalendarz-([0-9]+)-rok-([0-9]+)-miesiac-([0-9]+)-dzien-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA][/size]
[*][size=medium] RewriteRule ^kalendarz-([0-9]+)-rok-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA][/size]
[*][size=medium] [/size]
[*][size=medium] RewriteRule ^wydarzenie-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA][/size]
[*][size=medium] [/size]
[*][b][size=medium] <IfModule mod_env.c>[/size][/b]
[*][size=medium] SetEnv SEO_SUPPORT 1[/size]
[*][size=medium] </IfModule>[/size]
[*][size=medium]</IfModule>[/size]
[*][size=medium] [/size]
[*][size=medium]#[/size]
[*][size=medium]# If Apache is compiled with built in mod_deflade/GZIP support[/size]
[*][size=medium]# then GZIP Javascript, CSS, HTML and XML so they're sent to[/size]
[*][size=medium]# the client faster.[/size]
[*][size=medium]#[/size]
[*][b][size=medium]<IfModule mod_deflate.c>[/size][/b]
[*][size=medium] AddOutputFilterByType DEFLATE application/javascript text/css text/html text/xml[/size]
[*][size=medium]</IfModule>[/size]
[*][size=medium] [/size]
[*][size=medium]# Note: You are able to choose a different name in the Admin CP. If you've done that you need to change it here too[/size]
[*][size=medium]<Files "error.log">[/size]
[*][size=medium] Order Deny,Allow[/size]
[*][size=medium] Deny from all[/size]
[*][size=medium] [/size]
[*][size=medium]</Files>[/size]
[*][b][size=medium] [/size][/b]
[/list]