R
R
roadtoexp2018-09-11 15:55:37
Yii
roadtoexp, 2018-09-11 15:55:37

How to set URLs for links?

There is a site: site.com
All navigation links should enter this domain site.com
And links to static files site2.com

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Mikhail Lyalin, 2018-09-11
@mr_jok

and what prevents hard-coded links in the navigation to one site, and keep the files in storage anywhere

M
Maxim Timofeev, 2018-09-11
@webinar

depending on where you have static files and what server. For example, you can redirect everything that goes into the assets folder using .htaccess anywhere.
At the same time, the links themselves remain as they were, why touch them?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question