reNkai Posted April 21, 2008 Posted April 21, 2008 Hi I was wondering which is more advisable to use: RewriteRule .* index.php or RewriteRule !\.(js|ico|gif|jpg|png|css)$ /index.php I guess I am just trying to understand the difference between routing all requests to index.php vs routing all but a few select file types. There some security difference here? Thanks! Quote
TCH-Andy Posted April 21, 2008 Posted April 21, 2008 To me, it depends on what you want to achieve. If you want to allow some files to be seen, then you would use the later. If you want to prevent access to any file other than the index file, you would use the former. The former is potentially more secure ( assuming the index file is secure ), but only if other files / areas that someone could reach are insecure. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.