Once you access a directory without a trailing “/”, Apache needs to deliver something also known as a redirect with the client to inform they to incorporate the trailing slash. In the event it wouldn’t achieve this, relative URLs will never work effectively. If it directs the redirect, it must understand the label for the host so that it may include it in the redirect. There are 2 means for Apache to get this aside; either it can imagine, or you can tell it. If the DNS try configured precisely, it can normally think without the dilemmas. If it’s not, but you will need to inform it.
Another thing that may periodically create this symptom was a misunderstanding on the Alias directive, causing an alias working with a trailing slash, and never without one. The Alias directive is extremely literal, and aliases that which you inform it to. Check out the appropriate example:
- Alias /example/ /home/www/example/
These directive produces an alias for URLs beginning with /example/, but does not alias URLs beginning with /example. Read more