"Catch all" Domain

You would use the .htaccess file.

Use this code in your .htaccess file
Code:
RewriteEngine on 
RewriteCond %{REQUEST_FILENAME} !-d
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteRule . index.php [L]

This will redirect any requests of files that DO NOT exist to your index.php. For example, say the an image is getting requested. The image will be the response because the file actually exists. If it didn't exist then the response would come from the index.

Hope this helps. Let me know if you need a little more help.
 
Last edited:
Back
Top