Is it possible to make one PHP file to handle all requests coming to server public folder? -
If I have the site www.mysite.com and I have the folder Apache / HTODO as a public folder in my server I would like to assign all requests made to www.mysite.com to the index.php file. Is it possible or should I have folders if I want to show the URL as www.mysite.com/about/? And how can I use path information in PHP code?
See for a full example. This should work for you. mod_rewrite .
Comments
Post a Comment