Yangi formatda davom etish uchun: https://uzfor.net/view.php?id=1286&page=2
.htaccess bilan ishlash

Xabarlar
Adashib ketim
RewriteRule^profile.php? user='.$user['id'].'$/@'.$user['name'].'[L]
Сирожиддин (Раис), # Сирожиддин (Раис) (03.10.2017 / 22:16)
Tayota, yo'q .htaccess ga mysql, php, html kodlar yozib bo'lmaydi.A mysql yozadigan joylarda nima qilamiz mìsol '.$user['id'].'
Tayota, yo'q .htaccess ga mysql, php, html kodlar yozib bo'lmaydi.A mysql yozadigan joylarda nima qilamiz mìsol '.$user['id'].'
Сирожиддин (Раис), # Сирожиддин (Раис) (01.10.2017 / 00:50)
.htaccess orqali URL nomini o'zgartirish:
RewriteRule ^muqova.php$ /jild/muqova.php [L]
bu koddan keyin www.sayt.com/jild/muqova.php joriy manzilga o'zgaradi: sayt.com/muqova.phpBuni bironta köddan keyìn yoki biron ködga qöshib yozamìzmi yoki shundaymi?
Men eng oxiriga qöyib körgandim bömadi
.htaccess orqali URL nomini o'zgartirish:
RewriteRule ^muqova.php$ /jild/muqova.php [L]
bu koddan keyin www.sayt.com/jild/muqova.php joriy manzilga o'zgaradi: sayt.com/muqova.phpBuni bironta köddan keyìn yoki biron ködga qöshib yozamìzmi yoki shundaymi?
Men eng oxiriga qöyib körgandim bömadi

faqat bu men </ifmodules>dan keyngi qatorga ködni qöydim (+/-)
Options -Indexes
ErrorDocument 402 http://localhost:8080/?err
ErrorDocument 403 http://localhost:8080/?err
ErrorDocument 404 http://localhost:8080/?err
ErrorDocument 500 http://localhost:8080/?err
DirectoryIndex index.php
RemoveHandler .phtml .php3 .php4 .php5 .php6 .phps .cgi .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .py
AddType application/x-httpd-php-source .phtml .php3 .php4 .php5 .php6 .phps .cgi .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .py
AddDefaultCharset UTF-8
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 year"
# Data interchange
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/ld+json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"
# Favicon (cannot be renamed!) and cursor images
ExpiresByType image/x-icon "access plus 1 week"
# HTML components (HTCs)
ExpiresByType text/x-component "access plus 1 month"
# HTML
ExpiresByType text/html "access plus 0 seconds"
# JavaScript
ExpiresByType application/javascript "access plus 1 year"
# Manifest files
ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
ExpiresByType text/cache-manifest "access plus 0 seconds"
# Media
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
# Web feeds
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"
</IfModule>
ErrorDocument 402 http://localhost:8080/?err
ErrorDocument 403 http://localhost:8080/?err
ErrorDocument 404 http://localhost:8080/?err
ErrorDocument 500 http://localhost:8080/?err
DirectoryIndex index.php
RemoveHandler .phtml .php3 .php4 .php5 .php6 .phps .cgi .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .py
AddType application/x-httpd-php-source .phtml .php3 .php4 .php5 .php6 .phps .cgi .pl .asp .aspx .shtml .shtm .fcgi .fpl .jsp .py
AddDefaultCharset UTF-8
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
# CSS
ExpiresByType text/css "access plus 1 year"
# Data interchange
ExpiresByType application/json "access plus 0 seconds"
ExpiresByType application/ld+json "access plus 0 seconds"
ExpiresByType application/xml "access plus 0 seconds"
ExpiresByType text/xml "access plus 0 seconds"
# Favicon (cannot be renamed!) and cursor images
ExpiresByType image/x-icon "access plus 1 week"
# HTML components (HTCs)
ExpiresByType text/x-component "access plus 1 month"
# HTML
ExpiresByType text/html "access plus 0 seconds"
# JavaScript
ExpiresByType application/javascript "access plus 1 year"
# Manifest files
ExpiresByType application/x-web-app-manifest+json "access plus 0 seconds"
ExpiresByType text/cache-manifest "access plus 0 seconds"
# Media
ExpiresByType audio/ogg "access plus 1 month"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 month"
ExpiresByType image/png "access plus 1 month"
ExpiresByType video/mp4 "access plus 1 month"
ExpiresByType video/ogg "access plus 1 month"
ExpiresByType video/webm "access plus 1 month"
# Web feeds
ExpiresByType application/atom+xml "access plus 1 hour"
ExpiresByType application/rss+xml "access plus 1 hour"
</IfModule>
Сирожиддин, Shunda
</ifmodules> dan keyin
qilaymi
</ifmodules> dan keyin
iRewriteEngine On RewriteRule ^muqova.php$ / jild/muqova.php [L]
qilaymi
MrShahzodbek, Menga ishlayapgan edi xoz hostingda ishlayapman shunga site off. .htacessga ködni qöygan edim inglizcha sözlar va 500 owib chiqyapti
ochig'i xech nimaga tushunmayapman bir chekadan tushuntiradigan odamxam ýo. Googledan kerakli malumot xam topaolmadim

MrShahzodbek, Muamo htacesga yozadigan ködni qaysi ködni ìchiga yozishni bilmayapman </ifmodus>dan keyin yozgandim xali aytganimde 500owibka chiqdi.
.
Böldi master x tushuntirdi qilib körudim ishladi
.
Böldi master x tushuntirdi qilib körudim ishladi

Tayota, # Tayota (03.10.2017 / 22:09)
Сирожиддин (Раис), 1. .htaccess fayligaxam mysql php ködlarni yozish mumkinmi?
.
2. Man @nik qimoqchimanda
RewriteRule ^profile.php?user='.$user['id'].'$/profile.php@'.$user['name'].'[L]
qisaRewriteRule ^profile . php?user = '.$user[' id '].' $ / profile. php@ '.$user[' name '].' [L]
Har doim ham L ishlamaydi masalan
php faylni yani sayt.com/chat.php ni sayt.com/chat qilish uchun mana bunday yoziladi
RewriteEngine On
RewriteRule ^chat$ /chat.php [L]
Yoki sayt.com/chat/index.php?id=1 ni sayt.com/chat.php?id=1 qilish kerak bo'lsa mana bunday
RewriteEngine On
RewriteRule ^chat.php&id=([^/]*)$ /chat.php?id=([^/]*) [L,QSA]
Yoki sayt.com/chat/index.php ni sayt.com/chat.php qilish uchun
RewriteEngine On
RewriteRule ^chat.php$ /chat/index.php [L]
Hullas shunaqa eslaganim shu meni avvallari ishlatar edim ha keyn bu kodni.htaccess ni eng tagiga yozib qo'yaverasiz
Сирожиддин (Раис), 1. .htaccess fayligaxam mysql php ködlarni yozish mumkinmi?
.
2. Man @nik qimoqchimanda
RewriteRule ^profile.php?user='.$user['id'].'$/profile.php@'.$user['name'].'[L]
qisaRewriteRule ^profile . php?user = '.$user[' id '].' $ / profile. php@ '.$user[' name '].' [L]
Har doim ham L ishlamaydi masalan
php faylni yani sayt.com/chat.php ni sayt.com/chat qilish uchun mana bunday yoziladi
RewriteEngine On
RewriteRule ^chat$ /chat.php [L]
Yoki sayt.com/chat/index.php?id=1 ni sayt.com/chat.php?id=1 qilish kerak bo'lsa mana bunday
RewriteEngine On
RewriteRule ^chat.php&id=([^/]*)$ /chat.php?id=([^/]*) [L,QSA]
Yoki sayt.com/chat/index.php ni sayt.com/chat.php qilish uchun
RewriteEngine On
RewriteRule ^chat.php$ /chat/index.php [L]
Hullas shunaqa eslaganim shu meni avvallari ishlatar edim ha keyn bu kodni.htaccess ni eng tagiga yozib qo'yaverasiz
+ (1): Tayota,
Rahmat aytdi (1): Tayota,
Master-X, Rahmat mana shunaqa malumot bösa :ok:.gif)
.
A deylìk
RewriteEngine On
RewriteRule ^login.php$ kirish.php
.
Endi login.php va kirish.php qib kirsa böladi. Shuni faqat kirish.php qisa bölarmikan?
.gif)
.
A deylìk
RewriteEngine On
RewriteRule ^login.php$ kirish.php
.
Endi login.php va kirish.php qib kirsa böladi. Shuni faqat kirish.php qisa bölarmikan?

Tayota, # Tayota (08.11.2017 / 23:31)
Master-X, Rahmat mana shunaqa malumot bösa :ok:.gif)
.
A deylìk
RewriteEngine On
RewriteRule ^login.php$ kirish.php
.
Endi login.php va kirish.php qib kirsa böladi. Shuni faqat kirish.php qisa bölaRewriteEngine On
RewriteRule ^login.php$ kirish.php
Adashdiz RewriteRule ^ dan keyn kirish.php yoziladi
Yo'q login.php ga
Location('kirish.php); deb yozib qo'ying
Master-X, Rahmat mana shunaqa malumot bösa :ok:
.gif)
.
A deylìk
RewriteEngine On
RewriteRule ^login.php$ kirish.php
.
Endi login.php va kirish.php qib kirsa böladi. Shuni faqat kirish.php qisa bölaRewriteEngine On
RewriteRule ^login.php$ kirish.php
Adashdiz RewriteRule ^ dan keyn kirish.php yoziladi
Yo'q login.php ga
Location('kirish.php); deb yozib qo'ying
Rahmat aytdi (1): Tayota,

ERKIN7717, # ERKIN7717 (15.01.2018 / 09:31)
poddomen orqali kirilganda ham saytga kirib ketadigan qilsa bo'ladimi?
Ushbu kod orqali barcha subdomenlar bosh domenga o'tib ketadi. Hatto www.sayt.uz ham.
poddomen orqali kirilganda ham saytga kirib ketadigan qilsa bo'ladimi?
RewriteEngine On RewriteCond %{HTTP_HOST} ^(.+)\.sayt\.uz$ [NC] RewriteRule ^ https://sayt.uz/index.php [L,R]
Ushbu kod orqali barcha subdomenlar bosh domenga o'tib ketadi. Hatto www.sayt.uz ham.
Rahmat aytdi (1): ERKIN7717,

/news/index.php?act=view&id=1304 shuni /news/1304 qilish kodini yozib yuboringlar, o'zim xato yozyabman
Tavsiya etamiz:
- Hoziroq maydonlarni to'ldiring va reklamangizni joylashtiring!
Mavzuga oid xabarlar soni: 158 ta
So'ngi faollik vaqti: 09:37:23, 23 Nov 2021