If I have site http://www.mysite.com and then I have folder apache/htdocs as public folder in my server. I would like to have all requests made to http://www.mysite.com be assigned to index.php file. Is that possble or do I have to have folders if I want to have urls like http://www.mysite.com/about/ ? And how can I access path information in PHP code ?
If I have site www.mysite.com and then I have folder apache/htdocs as public folder
Share
Use
mod_rewrite.See http://www.workingwith.me.uk/blog/software/open_source/apache/mod_rewriting_an_entire_site for a complete example.
This should work for you.