M
M
mr_blond972015-09-12 01:40:23
htaccess
mr_blond97, 2015-09-12 01:40:23

How to redirect folders in .htaccess?

On the ABcom site, css is loaded from ABcom/css. How to use htaccess to load css from B.com/css?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Sidorenko, 2015-09-12
@mr_blond97

Here is an example from practice, all styles will be loaded from another site

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteRule [%,a-zA-Z0-9/-/+/()]+[.]{1}[css] http://B.com/%{REQUEST_URI}
</IfModule>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question