URLs not working without trailing /

Could you provide some more details, like which Linux distribution you're running, which webserver you've selected and perhaps stick the configuration file for that webserver software up on Pastebin or something?
 
From a filesystem perspective, Apache treats dir as different to dir/ so if you visit url/dir it redirects the request to url/dir/

It uses the server name configuration directive to build the redirect URL. So if your server name doesn't work, it will redirect to a URL that doesn't work.

Look for a ServerName variable in httpd.conf and change it to 192.168.0.100 (or to a DNS name that works if you have one)
 
From a filesystem perspective, Apache treats dir as different to dir/ so if you visit url/dir it redirects the request to url/dir/

It uses the server name configuration directive to build the redirect URL. So if your server name doesn't work, it will redirect to a URL that doesn't work.

Look for a ServerName variable in httpd.conf and change it to 192.168.0.100 (or to a DNS name that works if you have one)

I changed the ServerName setting in the conf from "webserv" to the hostname of the server and that works now thanks.
 
Back
Top Bottom