last day (14 days later) » 

11:37
0
Q: Resource link redirection

Nika GamkrelidzeI have a css linkage done like following: <link rel="stylesheet" href="res/style.css">, however, for some reason, browser tries to get the file from localhost//server/template/res/style.css and fails, because the server and res both reside on the same level in Document Root. What could be the pro...

Don't you have any base url for a particular path
Sorry, I don't understand your question
base url is created to navigate at a particular path...have you created that?
The base url is http://localhost/
11:37
The base url is localhost//server/template/login.php
@GauravAggarwal, so?
lets continue this in chat
hi
thank you for your support
no problem
actually base url is not what you thinking
so
could you help me?
you have to define a path in base url for example
you have a path like this var/www/html/panel/mypanel
and now the images folder and other folder in mypanel
and suppose you have created base url for var/www/html folder
then you can give path like this <base_url>/panel/mypanel/images
understood?
11:44
yest
yes
have you used phpstorm?
i think, what you're saying is called Document Root in phpstorm
correct?
if yes, my document root is D:\ABC\SMS\SMS\Front_old
and inside there is res/style.css
and also server/template/login.php
which uses style.css
i want to access login.php page by calling localhost/login
i am not at good in php so not be able to help in code
this is the base url
as can be read from configuration file

last day (14 days later) »