where to place htaccess file for php MVC
I'm building a php MVC application from scratch, that is I'm building my own framework as a part of a project. I read tutorials and it says that i have to modify the htaccess file and include it in the application root.
My project is inside htdocs of xammp i have it like this so far
htdocs
开发者_开发知识库 MvcApplication
I will include the corresponding directories suchas Controllers, Views etc. What I don't understand is where do i include the htaccess that will apply only to THIS specific project.
Thanks!
the .htaccess file goes right inside the htdocs folder.
http://httpd.apache.org/docs/2.2/howto/htaccess.html
In the root directory of your project.
So if http://localhost/index.php maps to c:\project\index.php, put it in c:\project.
精彩评论