code_one
kHakimzhon, # kHakimzhon (21.04.2020 / 19:53)
Hullas .htaccess ga http pratakoldan https pratakolga yo’lash uchun kod yozilgan i other/page.php ni page.php ga alishtirish kodi yozilgan shu htaccess orqali urli taxrirlangan sahifaga http pratakol
.htaccess orqali URL nomini o'zgartirish:
  1. RewriteRule ^muqova.php$ /jild/muqova.php [L]

bu koddan keyin www.sayt.com/jild/muqova.php joriy manzilga o'zgaradi: sayt.com/muqova.php

manimcha siz shuni suragansiz bu bumasa uzur
98 kun 23 soat 40 daqiqa 9 soniyadan keyin yozdi:
https ni ololmayapman yordam kerak
  1. Options -Indexes
  2. ErrorDocument 402 /?err
  3. ErrorDocument 403 /?err
  4. ErrorDocument 404 /?err
  5. ErrorDocument 500 /?err
  6. DirectoryIndex index.php
  7.  
  8. RemoveHandler .phtml .php3 .php4 .php5 .php6 .phps .cgi .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .py
  9. AddType application/x-httpd-php-source .phtml .php3 .php4 .php5 .php6 .phps .cgi .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .py
  10.  
  11. AddDefaultCharset UTF-8
  12.  
  13. <IfModule mod_expires.c>
  14. ExpiresActive on
  15. ExpiresDefault "access plus 1 month"
  16.  
  17. # CSS
  18. ExpiresByType text/css "access plus 1 year"
  19.  
  20. # Data interchange
  21. ExpiresByType application/json "access plus 0 seconds"
  22. ExpiresByType application/ld+json "access plus 0 seconds"
  23. ExpiresByType application/xml "access plus 0 seconds"
  24. ExpiresByType text/xml "access plus 0 seconds"
  25.  
  26. # Favicon (cannot be renamed!) and cursor images
  27. ExpiresByType image/x-icon "access plus 1 week"
  28.  
  29. # HTML components (HTCs)
  30. ExpiresByType text/x-component "access plus 1 month"
  31.  
  32. # HTML
  33. ExpiresByType text/html "access plus 0 seconds"
  34.  
  35. # JavaScript
  36. ExpiresByType application/javascript "access plus 1 year"
  37.  
  38. # Manifest files
  39. ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
  40. ExpiresByType text/cache-manifest "access plus 0 seconds"
  41.  
  42. # Media
  43. ExpiresByType audio/ogg "access plus 1 month"
  44. ExpiresByType image/gif "access plus 1 month"
  45. ExpiresByType image/jpeg "access plus 1 month"
  46. ExpiresByType image/png "access plus 1 month"
  47. ExpiresByType video/mp4 "access plus 1 month"
  48. ExpiresByType video/ogg "access plus 1 month"
  49. ExpiresByType video/webm "access plus 1 month"
  50.  
  51. # Web feeds
  52. ExpiresByType application/atom+xml "access plus 1 hour"
  53. ExpiresByType application/rss+xml "access plus 1 hour"
  54. </IfModule>

shundan keyin buni yozsam sayt ishlamay qolyapti
  1. RewriteEngine On
  2. RewriteCond %{HTTPS}!on
  3. RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}

maqsadim https olish ssl sertitikat olingan