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