<p>Discussion with solutions here <a href="https://github.com/laravel/valet/issues/179" rel="nofollow">https://github.com/laravel/valet/issues/179</a></p>

CC BY-SA 3.0
2016-10-12T22:59:48.493Z
2016-10-12T22:59:48.493Z
Dane Thomas
<p>I'm trying to setup our Craft CMS dev environment with <a href="https://laravel.com/docs/5.3/valet" rel="nofollow">Valet</a> which is just a wrapper for Caddy Server and dnsmasq.</p>

<p>I seem to be running into some redirect/locale issues that's preventing these pages from loading. The rest of the site and the CMS admin itself is working fine. </p>

<p>I've previously had things setup on apache and have followed the <a href="https://craftcms.com/docs/localization-guide" rel="nofollow">localization guides</a> but I'm thinking it has to do with the fact that caddy server doesn't honor <code>.htaccess</code> files so I need to add some rewrite rules in my <code>Caddyfile</code> for the various locales. </p>

<p>When trying to load the regional sites it's just giving me a 404. </p>

<p>Has anyone else got this working?</p>

<localization><redirect><caddy><valet>
Redirect and locale issues when using Valet / Caddy Server
# Redirect and locale issues when using Valet / Caddy Server

(Asked by: username_0 on 2016-09-29)

I'm trying to setup our Craft CMS dev environment with [Valet](https://laravel.com/docs/5.3/valet) which is just a wrapper for Caddy Server and dnsmasq.

I seem to be running into some redirect/locale issues that's preventing these pages from loading. The rest of the site and the CMS admin itself is working fine.

I've previously had things setup on apache and have followed the [localization guides](https://craftcms.com/docs/localization-guide) but I'm thinking it has to do with the fact that caddy server doesn't honor `.htaccess` files so I need to add some rewrite rules in my `Caddyfile` for the various locales.

When trying to load the regional sites it's just giving me a 404.

Has anyone else got this working?

**Tags:** localization, redirect, caddy, valet


---

## 1 answers

### Answer by username_0 on 2016-10-12. Score: 1

Discussion with solutions here <https://github.com/laravel/valet/issues/179>


---

