A
A
alh_22015-11-17 01:14:48
PHP
alh_2, 2015-11-17 01:14:48

Change %20 to _ in url in htaccess how?

A person visits my site via a certain link, there are spaces, %20 is substituted instead, how to change %20 to _ (underscore) in htaccess.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
cwalking, 2015-11-17
@cwalking

try like this:

RewriteRule ^([^\s%20]+)(?:\s|%20)+(.*)$ ‒ [R=301,L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question