A
A
Anton Izmailov2015-08-27 20:51:10
Apache HTTP Server
Anton Izmailov, 2015-08-27 20:51:10

Apache + Magento - how to hide the full path?

Tell.
First time trying to set up a server, installed ubuntu 14.04 + LAMP.
I set everything up, chose the /home/magento directory and uploaded the site there.
Installed magento, but how to hide the absolute path?

<link rel="stylesheet" type="text/css" href="/home/magento/js/calendar/calendar-win2k-1.css" />
- this is what the links look like and that's why neither js nor css works.
How to fix it? How to change absolute addressing in apache?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vitaliy Orlov, 2015-08-27
@WapGeaR

you need to go to the admin panel and find the path settings there, in these settings you need to specify the site address
I haven’t worked with Magento for a long time, from memory here: System> Configuration> Web
- then there will be "tabs" on the right side
- somewhere there you need set the correct secure/unsecure "Base url" (http :// site.ru / )
- then you need to save everything
- and reset the cache if it is enabled

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question