Welcome Guest, Not a member yet? Register   Sign In
Ajax question: Why do I need index.php in the path?
#4

[eluser]wowdezign[/eluser]
Actually, if I am not mistaken, every single call has to actually go to the index.php file. However, with .htaccess you can remove it from the URL and also redirect every call to the index.php file.

So, two birds with one stone. Every call (legitimate call, that is) must go through the index.php file so it can route, load, etc... On the other hand, index.php in the web address is ugly, confusing, etc...

So by using mod_rewrite you fix both in one file.

Someone correct me if I am wrong, or elaborate if I explained it wrong. I'm not an expert.


Messages In This Thread
Ajax question: Why do I need index.php in the path? - by El Forum - 01-07-2010, 10:27 AM
Ajax question: Why do I need index.php in the path? - by El Forum - 01-07-2010, 10:31 AM
Ajax question: Why do I need index.php in the path? - by El Forum - 01-07-2010, 12:43 PM
Ajax question: Why do I need index.php in the path? - by El Forum - 01-07-2010, 01:34 PM
Ajax question: Why do I need index.php in the path? - by El Forum - 01-07-2010, 01:37 PM
Ajax question: Why do I need index.php in the path? - by El Forum - 01-07-2010, 01:39 PM



Theme © iAndrew 2016 - Forum software by © MyBB