Url yeniden yazma hiç aşina değilim, bu yüzden muhtemelen bilen biri için basit bir soru var.URL yeniden nasıl yazılır .htaccess ile
benim url http://birthdaycakenames.com/category.php?id=1/all-happy-birthday-cake
ve ben burada bu http://birthdaycakenames.com/category/1/all-happy-birthday-cake
sevmesini istiyorum
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.birthdaycakenames.com [NC]
RewriteRule ^(.*)$ http://birthdaycakenames.com/$1 [L,R=301]
AddDefaultCharset UTF-8
RewriteRule ^/(css|js|img)/(.*)?$ /$1/$2 [L,QSA,R=301]
RewriteRule ^category/$ category.php
RewriteRule ^([a-zA-Z0-9-/]+)/([a-zA-Z0-9-/]+)/?$ detail.php?title=$1&id=$2
RewriteRule ^([a-zA-Z0-9-/]+)/?$ detail.php?id=$1
RewriteRule ^category/(.+)$ category.php?id=$1&id=$2
Options -Indexes
bu denemek ve url yeniden yazma ' – Alish