> ## Documentation Index
> Fetch the complete documentation index at: https://docs.anodyne-productions.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Pretty URLs

> Out of the box, Nova includes a filename in the URL. Learn how to get rid of that file in the URL

## Apache

If your server is running Apache (your web host will know if you don't), you can create a file named `.htaccess` on the server at the root of your site. The following configuration should work for most servers:

```apacheconf theme={null}
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
```

## Nginx

If your server is running Nginx (your web host will know if you don't), you'll have to modify one of the servers files to get URL re-writing working properly. You can edit the `/etc/nginx/conf.d/default.conf` file and add the following to your `server` object:

```nginx theme={null}
location / {
    # Check if a file or directory index file exists, else route it to index.php.
    try_files $uri $uri/ /index.php;
}
```

<Warning>Before attempt to make this change, talk to your web host. They may have different ways of handling URL re-writing that are easier and potentially less disruptive to your server.</Warning>
