Postingan lainnya
Kelas Premium!
Belajar bikin website dari nol sekarang
Gunakan kupon "lebihcepat" untuk diskon 25%!
Cara membuat ceo url friendly menggunakan .htaccess?
localhost/jadikeun/post?id=21&title=Desain%20rumah%202%20lantai%20tropis
Berharap : localhost/jadikeun/post/21/Desain-rumah-2-lantai-tropis
.httaccess nya
RewriteEngine on
RewriteRule ^post/([0-9]+)/([0-9a-zA-Z_-]+) post.php?id=$1&title=$2
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php
RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.html -f RewriteRule ^(.*)$ $1.html
index.php #MENAMPILKAN POST
$value): ?>
[![image](img/gambar_rumah/<?php echo $value['gambar_post']; ?>)](post?id=<?php echo $value['id_post']; ?>/<?php echo $value['title_post']; ?>)
- 3
[Selengkapnya](detail_post?id=<?php echo $value['id_post']; ?>)
"; } ?>
Tanggapan
coba baca aturan main, cara bertanya yang baik, judulnya juga cukup yang ditanyak tidak usah pakai "tolong suhu dsb"
Belum ada Jawaban. Jadi yang pertama Jawaban
Login untuk ikut Jawaban