0
votes

Are all requests handled in index.php?

2
what do you mean with request? - streetparade

2 Answers

3
votes

Yes. All* requests will go through index.php there is a rewrite rule in the .htaccess file which masks this and gives user friendly urls.

# Rewrite URLs of the form 'x' to the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]

If Drupal can't invoke these rules then you will see index.php in the browser URL.

**There are cron.php and update.php which don't but these are special files for admin so are not part of the run of the mill site.*

1
votes

Yes. If you're looking for certain code snippets that handles URL parsing and calls various modules then take a look inside bootstrap.inc