Quantcast
Channel: User Kannan - Webmasters Stack Exchange
Viewing all articles
Browse latest Browse all 39

Answer by Kannan for Is it possible to display the path with an Apache index listing with a custom header?

$
0
0

Since you are using a custom header, adding a small piece of JavaScript to the header file should help.

For example, below JS code in the custom header will modify the h1 tag (custom defined) to show the current URL.

<h1 id="path"></h1><script>document.getElementById("path").innerHTML = "Index of " + window.location.href;</script>

Viewing all articles
Browse latest Browse all 39

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>