htatcess dosyamda bu şekilde.
Kod:
Options -MultiViews +FollowSymlinks -Indexes
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
# Hosting paketinizde, RewriteBase ve RewriteRules özelliklerinin etkin olması gerekli.
RewriteBase /
# ./search.php sorunlarınız geçici çözümler:
# ./.htaccess dosyası için yazma izni vermeniz gerekiyor. (777)
RewriteRule ^([^&]*)&(.*)$ http://sanalking.net/$1?$2 [L,QSA,R=301]
# Google SEO 404 Sayfaları:
ErrorDocument 404 /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 ^forum\-([^./]+)$ forumdisplay.php?google_seo_forum=$1 [L,QSA,NC]
# Google SEO URL Konular:
RewriteRule ^konu\-([^./]+)\.html$ showthread.php?google_seo_thread=$1 [L,QSA,NC]
# Google SEO URL Duyurular:
RewriteRule ^duyuru\-([^./]+)\.html$ announcements.php?google_seo_announcement=$1 [L,QSA,NC]
# Google SEO URL Kullanıcılar:
RewriteRule ^uye\-([^./]+)\.html$ 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 ^etkinlik\-([^./]+)\.html$ calendar.php?action=event&google_seo_event=$1 [L,QSA,NC]
<IfModule mod_env.c>
SetEnv SEO_SUPPORT 1
</IfModule>
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/plain text/xml text/css application/x-javascript application/xml image/png image/x-icon image/gif image/jpeg application/xml+rss text/javascript application/atom+xml application/javascript application/json
</IfModule>
<FilesMatch "\.(ico|jpg|jpeg|png|gif|swf|css|js|eot|woff|ttf|svg)$">
FileETag none
</FilesMatch>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/png "access plus 1 year"
ExpiresByType image/gif "access plus 1 year"
ExpiresByType image/jpg "access plus 1 year"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType text/css "access plus 1 year"
ExpiresByType application/javascript "access plus 1 year"
ExpiresByType application/x-javascript "access plus 1 year"
ExpiresByType text/javascript "access plus 1 year"
ExpiresByType font/truetype "access plus 1 year"
ExpiresByType font/opentype "access plus 1 year"
ExpiresByType application/x-font-woff "access plus 1 year"
ExpiresByType image/svg+xml "access plus 1 year"
ExpiresByType application/vnd.ms-fontobject "access plus 1 year"
</IfModule>
<ifModule mod_headers.c>
<filesMatch "\.(ico|jpg|jpeg|png|gif|swf|eot|woff|ttf|svg)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(css)$">
Header set Cache-Control "public"
</filesMatch>
<filesMatch "\.(js)$">
Header set Cache-Control "private"
</filesMatch>
<filesMatch "\.(html|php)$">
Header set Cache-Control "private, must-revalidate"
</filesMatch>
</ifModule>