J
J
jskarter2015-12-05 20:42:55
htaccess
jskarter, 2015-12-05 20:42:55

How to redirect static in htaccess?

How to redirect statics (png, jpg) from the current domain to another in htaccess, keeping the path, that is, from mysite.ru/data/events/456018232014123673489.png to make m.mysite.ru/data/events/456018232014123673489.png
?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
IceJOKER, 2015-12-05
@IceJOKER

RewriteEngine on
RewriteRule (.*?\.(png|jpg)) http://m.mysite.ru/$1

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question