Depending on exactly what you are wanting to do (I'm not sure if I fully am comprehending your question correctly), the answer may vary.
If you are wanting people to be able to type anything beyond website.com/main and still receive website.com/main (i.e. website.com/main%20;+dasdas) you can use mod_rewrite to do this.
http://www.sitepoint.com/article/guide-url-rewriting