- 27 May 2022
- 74
- 7
beyler ben sımdı bı scrıptı duzenlıyorum ama dosyayı siteye aktardıgımda index sayfası asla açılmıyor neden aceba bı forumda .htaccess dosyası hatalıdır dıyo kod boyle
Kod:
php_value memory_limit 100M
php_value post_max_size 100M
php_value upload_max_filesize 100M
<IfModule mod_headers.c>
Header set X-XSS-Protection "1; mode=block"
Header unset Server
Header always unset X-Powered-By
Header unset X-Powered-By
Header unset X-CF-Powered-By
Header unset X-Mod-Pagespeed
Header unset X-Pingback
ServerSignature Off
</IfModule>
<filesMatch ".(ico|pdf|flv|jpg|jpeg|png|gif|js|css|swf)$">
Header set Cache-Control "max-age=604800, public"
</filesMatch>
<filesMatch ".(php)$">
Header set Cache-Control "max-age=43200, public"
</filesMatch>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType image/jpg "access 1 year"
ExpiresByType image/jpeg "access 1 year"
ExpiresByType image/gif "access 1 year"
ExpiresByType image/png "access 1 year"
ExpiresByType text/css "access 1 month"
ExpiresByType application/pdf "access 1 month"
ExpiresByType application/javascript "access 1 month"
ExpiresByType application/x-javascript "access 1 month"
ExpiresByType application/x-shockwave-flash "access 1 month"
ExpiresByType image/x-icon "access 1 year"
ExpiresDefault "access 7 days"
</IfModule>
<ifModule mod_gzip.c>
mod_gzip_on Yes
mod_gzip_dechunk Yes
mod_gzip_item_include file \.(html?|txt|css|js|php|pl)$
mod_gzip_item_include handler ^cgi-script$
mod_gzip_item_include mime ^text/.*
mod_gzip_item_include mime ^application/x-javascript.*
mod_gzip_item_exclude mime ^image/.*
mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
</ifModule>
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} ^www\.(.+)$ [NC]
RewriteRule ^ https://%1%{REQUEST_URI} [R=301,L]
RewriteRule ^home/?$ index.php?show=home [NC,L]
RewriteRule ^about/?$ index.php?show=about [NC,L]
RewriteRule ^logout/?$ logout.php [NC,L]
RewriteRule ^login/?$ input.php?show=login [NC,L]
RewriteRule ^register/?$ input.php?show=register [NC,L]
RewriteRule ^redeem/?$ input.php?show=redeem [NC,L]
RewriteRule ^list-redeem/?$ index.php?show=list-redeem [NC,L]
RewriteRule ^film/?$ index.php?show=film [NC,L]
RewriteRule ^wishlist/?$ index.php?show=wishlist [NC,L]
RewriteRule ^master/?$ master/index.php [NC,L]
RewriteRule ^privacy/?$ index.php?show=privacy [NC,L]
RewriteRule ^term/?$ index.php?show=term [NC,L]
RewriteRule ^license/?$ index.php?show=license [NC,L]
RewriteRule ^images/?$ crop.php?img=empty.png [NC,L]
RewriteRule ^images/(.*)/?$ crop.php?img=$1 [NC,L]
RewriteRule ^images_detail/?$ crop_detail.php?img=empty.png [NC,L]
RewriteRule ^images_detail/(.*)/?$ crop_detail.php?img=$1 [NC,L]
RewriteRule ^detail/?$ index.php?show=detail [NC,L]
RewriteRule ^detail/(.*)/?$ index.php?show=detail&id=$1 [NC,L]
RewriteRule ^details/?$ index.php?show=detail_fake [NC,L]
RewriteRule ^details/(.*)/?$ index.php?show=detail_fake&id=$1 [NC,L]
RewriteRule ^genre-movies/?$ index.php?show=genre-movies [NC,L]
RewriteRule ^genre-movies/(.*)/?$ index.php?show=genre-movies&genre=$1 [NC,L]
RewriteRule ^pay/?$ index.php?show=pay [NC,L]
RewriteRule ^pay/(.*)/?$ index.php?show=pay&id=$1 [NC,L]
RewriteRule ^watch/?$ index.php?show=watch [NC,L]
RewriteRule ^watch/(.*)/?$ index.php?show=watch&id=$1 [NC,L]
RewriteRule ^watchs/?$ index.php?show=watch_fake [NC,L]
RewriteRule ^watchs/(.*)/?$ index.php?show=watch_fake&id=$1 [NC,L]
RewriteRule ^trailer/?$ index.php?show=trailer [NC,L]
RewriteRule ^trailer/(.*)/?$ index.php?show=trailer&id=$1 [NC,L]
RewriteRule ^category/?$ index.php?show=category [NC,L]
RewriteRule ^category/(.*)/?$ index.php?show=category&id=$1 [NC,L]
RewriteRule ^videos/?$ videos.php [NC,L]
RewriteRule ^videos/(.*)/?$ videos.php?id=$1 [NC,L]
RewriteRule ^videosf/?$ videos_fake.php [NC,L]
RewriteRule ^videosf/(.*)/?$ videos_fake.php?id=$1 [NC,L]
RewriteRule ^search/?$ index.php?show=search [NC,L]
RewriteRule ^search/(.*)/?$ index.php?show=search&q=$1 [NC,L]
RewriteRule ^info/?$ index.php?show=info [NC,L]
RewriteRule ^info/(.*)/?$ index.php?show=info&id=$1 [NC,L]
RewriteRule ^sitemap.xml$ sitemap.php [NC,L]
</IfModule>