- Convert the scheme and host to lower case.
- Remove duplicate slashes. Two adjacent slashes within a URL path should be converted to a single slash.
- Remove default directory indexes. The default directory indexes,
default.asp,index.html,index.htm,index.php,index.shtmlshould be removed from URLs. - Remove default ports. The default port 80 for http and 443 for https should be removed from URLs.
- Remove dot-segments. The segments
..and.should be removed from URLs.
- Enable CGI in Apache:
sudo a2enmod cgi.
- CGI: To install, run
sudo perl -MCPAN -eshell, theninstall CGI. - LWP::Simple: To install, run
sudo apt-get install libwww-perl.