0

I have many URLs in my PHP script, but I want to replace %20 with - or _, and . with -.

Can I do this replacement globally using .htacess?

Don't Panic
  • 41,125
  • 10
  • 61
  • 80
yaman
  • 13
  • 5
  • Something like this? http://stackoverflow.com/questions/18673576/replace-special-character-in-htaccess –  Sep 04 '15 at 21:38
  • It doesn't work for me.I don't know why.I have problem when I add dot to post it doesn't open with dot in post? – yaman Sep 04 '15 at 21:46
  • possible duplicate of [.htaccess prevent B flag from encoding + symbols or change occurences of %20 into +?](http://stackoverflow.com/questions/11791753/htaccess-prevent-b-flag-from-encoding-symbols-or-change-occurences-of-20-int) – Patrick D'appollonio Sep 04 '15 at 22:08
  • You are spelling the name of the file--".htaccess" with two cs--correctly in your actual work, yes? – Matt Gibson Sep 04 '15 at 22:37

0 Answers0