Absolute URL Path for PHP Website -


I am working on a website in the CMS site. I have provided a link in my footer file eg. Blogs Php This page is like root, like ""

When I go to other files such as the footer changes to "" link, "" blogs.php page stays on the path "". I tried different $ _SERVER [] variables but found no luck to get the above path "" means the name of the server with the directory where the project is currently running.

Any person gets the idea of ​​how to do it

You can use the full URL or try to rewrite your URL with a condition.


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -