Geçerli htaccess göre seo permalink url için bir php kod yazın

0 Cevap php

Aşağıda örnek bir ünlü .htaccess olduğunu

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

Ben burada bildiklerini, URL için sonuç olacaktır

http://domain.com/about.php will be http://domain.com/about/
http://domain.com/contact.php will be http://domain.com/contact/

Örnek benim URL http://domain.com/page.php?id=1

URL http://domain.com/page-name/ .htaccess Yukarıdaki göre olacaktır PHP bir kod yazmak nasıl.

0 Cevap