I
I
Ivan Sokhin2015-12-14 23:26:24
PHP
Ivan Sokhin, 2015-12-14 23:26:24

How to redirect the right links to the right folder?

There is a login.php file, which lies in the modules folder, the login.html file is connected to it, which lies in the templates/name/login.html folder. "name" - template name. The template is switched in the admin panel. The login.html file contains links, for example, style.css, which are located in the name folder (templates/name). But, of course, when you open the login.php file, the links open like - site.com/css/style.css, etc. How do I redirect all links inside the login.html file to templates/name/.. without touching the login.html file. Moreover, given the template selected in the admin panel database. Is this somehow done in the php file? Or is it possible through RewriteRule?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton, 2015-12-14
@hummingbird

Write in the templates/name/login.html file like this: templates/name/css/style.css. Not?
Or:
RewriteRule ^/assets/img/$ /templates/(.*)/assets/img [L]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question