N
N
Nikolaymac2018-03-27 13:58:37
htaccess
Nikolaymac, 2018-03-27 13:58:37

How to remove the slash at the end of DOCUMENT_ROOT?

On the hosting, the path $_SERVER['DOCUMENT_ROOT'] = /home/u21488/site/www/ is formed - now this is what is
needed - /home/u21488/site/www - should be like this
How to remove the slash at the end of DOCUMENT_ROOT in htaccess?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
lnked, 2018-03-27
@lnked

rtrim('/home/u21488/сайт/www/', '/')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question