E
E
Extramezz2015-12-03 11:57:23
Apache HTTP Server
Extramezz, 2015-12-03 11:57:23

How to change the root directory?

Good afternoon, there is an Apache server. Public_html contains the site_one folder, it contains pages, css files, etc. If I specify a path like "/css/file.png" on one of these pages, it will be read as "public_html/css/file.png". There is also an htpaccess file in the site_one directory. What needs to be written in it so that the files in the site_one folder are considered its root directory?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry Belyaev, 2015-12-03
@bingo347

this should not be specified in htaccess, but in the apache settings,
look on the Internet for information on setting up a host in apache
after the settings have been made, you must restart the server

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question