I recently went to a webpage and noticed their directory page was customized.
putlocker.is/featured/
NOT
putlocker.is/featured
How would I costumize this on an Apache sever?
I recently went to a webpage and noticed their directory page was customized.
putlocker.is/featured/
NOT
putlocker.is/featured
How would I costumize this on an Apache sever?
The URL you provide almost certainly isn't an Apache directory index (although there are some directives which can customise those, such as IndexStyleSheet
). To achieve a custom page when a URL with a /
on the end is requested then, given a vanilla Apache configuration:
Put an HTML document in that directory with a filename that is in the list specified by the DirectoryIndex
directive. Usually this will include index.html
.
You can also use a file that will generate HTML programmatically (such as PHP on a system with PHP installed) or divert the request (e.g. using ScriptAlias
or mod_rewrite) to another program (which might use the front controller pattern).
Here is an example to use Catalyst for this purpose, you then define your URLs using Catalyst actions.