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?

mod_rewrite .

See for a full example.

This should work for you.

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -