D
D
dzianissmit2016-06-29 21:00:18
htaccess
dzianissmit, 2016-06-29 21:00:18

How to apply urlencode in htaccess when redirecting?

Now htaccess looks like this:

Order allow,deny
allow from all
Deny from 81.28.180.139
RewriteCond %{REQUEST_URI} (.*)
RewriteRule ^(.*)$ http://epnclick.ru/redirect/cpa/o/o9jhnpee16hcl35swxgaeswxlo9rnn0n/?to=http://asos.com/$1 [L,R=301]

It is necessary that the urlencode is applied to the link, in this form
http://alipromo.com/redirect/cpa/o/rfqd7tnm7mq73hyyq36tag7a5zy3sq7t/?to=http%3A%2F%2FAsos.com

Answer the question

In order to leave comments, you need to log in

1 answer(s)
X
xmoonlight, 2016-06-29
@dzianissmit

escape % with \
http\%3A\%2F\%2FAsos.com

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question