<p>Probably what you're seeing the the generic webserver 404 error page... which means there's something wrong with your server config, as its not sending 404's to Craft to handle.</p>

CC BY-SA 3.0
2017-08-14T01:14:09.453Z
2017-08-14T01:14:09.453Z
andrew.welch
<p>When I type mydomain.dev/blahwrongurl - for some reason .htaccess doesn't redirect to the 404.html file, but just write the blahwrong url out on the page and nothing else?</p>

<p>I get the feeling that I messed up routes somewhere, but I deactivated all of my plugins but nothing changed.</p>

<p>Does anyone know why?</p>

CC BY-SA 3.0
2016-12-15T03:24:14.137Z
Are you defining custom routes? Have you modified the stock Craft `.htaccess` file?  Have you defined a custom 404.html/.twig file?
Brad Bell
CC BY-SA 3.0
2016-12-15T06:01:30.440Z
I've remove any custom routes, I've deactivated all plugins and haven't changed anything in the .htaccess file. Still same problem.
Beuschau
CC BY-SA 3.0
2016-12-15T11:56:36.773Z
You can see an example here http://www.husetsforsikring.dk/blah
Beuschau
CC BY-SA 3.0
2016-12-15T23:41:57.810Z
Weird... have you defined a 404.html file in your templates folder?
Brad Bell
CC BY-SA 3.0
2016-12-16T06:01:27.850Z
Yes I have and it works when I use husetsforsikring.dk/404.html
Beuschau
<404>
404 issues and redirect/.htaccess
# 404 issues and redirect/.htaccess

(Asked by: username_0 on 2016-12-14)

When I type mydomain.dev/blahwrongurl - for some reason .htaccess doesn't redirect to the 404.html file, but just write the blahwrong url out on the page and nothing else?

I get the feeling that I messed up routes somewhere, but I deactivated all of my plugins but nothing changed.

Does anyone know why?

**Tags:** 404

> **Comments:**
> **username_1**: Are you defining custom routes? Have you modified the stock Craft `.htaccess` file?  Have you defined a custom 404.html/.twig file?  
> **username_0**: I've remove any custom routes, I've deactivated all plugins and haven't changed anything in the .htaccess file. Still same problem.  
> **username_0**: You can see an example here http://www.husetsforsikring.dk/blah  
> **username_1**: Weird... have you defined a 404.html file in your templates folder?  
> **username_0**: Yes I have and it works when I use husetsforsikring.dk/404.html  

---

## 1 answers

### Answer by username_2 on 2017-08-14. Score: 1

Probably what you're seeing the the generic webserver 404 error page... which means there's something wrong with your server config, as its not sending 404's to Craft to handle.


---

