The default app (sometimes called the default site) is the app that will be used for any web requests that use the server's IP address (e.g., http://1.2.3.4) or a domain name that doesn't belong to any of the apps on the server.

Tip: Add your server's IP address as an app's domain name to preview the app.
You don't need to enable the default app to preview an app using your server's IP address. Instead, add the server's IP address as one of the app's domain names.

Which App Is the Default?

The default app is the app whose name is alphabetically first.

If you have two apps on your server, foo and bar, then the app bar will be the default because bar comes alphabetically before foo.

How to Create a Default App

If you want to create an app that is always the default, create an app named 0default (a zero followed by the word default). As long as none of your other apps start with a zero, this app will be the default.

How to Make a Specific App the Default

If you need to make a specific app the default, you should still create an app named 0default as described above. After creating the app, create a .htaccess file in the 0default app's web root directory with the following contents:

RewriteRule .* http://example.com [R=302,L]
You can change the 302 to a 301 after you have confirmed your redirect is working as expected and you are ready for it to be cached by browsers.
Alert: For Control Panel Help & Tutorials, click here: Panel Tutorials
Was this answer helpful? 0 Users Found This Useful (0 Votes)