Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2024-08-07 17:54:51

retmonando
Member
Registered: 2024-08-03
Posts: 10
Website

Redirect 301 all 404 pages

how to redirect 404 to homepage?
please help.
many thanks

Offline

#2 2024-08-07 20:38:16

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,259
GitHub

Re: Redirect 301 all 404 pages

What web server are you using? Apache, Nginx, or something else?

Offline

#3 2024-08-08 00:45:16

retmonando
Member
Registered: 2024-08-03
Posts: 10
Website

Re: Redirect 301 all 404 pages

gaekwad wrote #337565:

What web server are you using? Apache, Nginx, or something else?

using apache

Offline

#4 2024-08-08 06:21:16

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,090
Website GitHub Mastodon Twitter

Re: Redirect 301 all 404 pages

retmonando wrote #337563:

how to redirect 404 to homepage?
please help.
many thanks

Although this is not avisable for search engine results, you add the following in your htaccess.

ErrorDocument 404 /

The slash represents your site root.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB