vendredi 4 avril 2014

Replacing space with - error


Vote count:

0




I've now this link; /category.php?nameid=Test&id=test%20lekker Because I've made with htaccess url friendly to test/test%20lekker/ I think the %20 will cost problems so I tried to replace the space to - but when I got to /category.php?nameid=Test&id=test-lekker Script doesn't show the get functions.


this is my .htaccess file:



Options +FollowSymlinks -MultiViews
RewriteEngine on
RewriteBase /
RewriteRule ^detail/(css|js|img)/(.*)?$ /$1/$2 [L,QSA,R=301]
# keep replacing space to hyphen until there is no space use internal rewrite
RewriteRule ^([^\s%20]*)[\s%20]+(.*)$ $1-$2 [E=NOSPACE:1]

# when there is no space make an external redirection
RewriteCond %{ENV:NOSPACE} =1
RewriteRule ^([^\s%20]+)$ $1 [R=301,L]


asked 2 mins ago






Aucun commentaire:

Enregistrer un commentaire