küçük. htaccess sorgu dizesi sorunu?

0 Cevap php

Benim php:

if(isset($_GET['text'])) {
 $text = $_GET['text'];
} else {
 $text = "default"; //if no ?text= set then print "default"
}

benim. htaccess

RewriteEngine On
RewriteRule ^(.*)$ index.php?text=$1 [L,QSA]

. htaccess benim url benim else deyimi ("default") çalışmıyor metni ayarlayın yoksa dışında, gerçekten iyi çalışıyor.

so if enter mydomain.com/whatthe everything works fine ($text = "whatthe";) however when i just call mydomain.com $text is empty instead of cotaining "default".

ne ben yanlış mı?

0 Cevap