How to fix the issue 404 redirect.
This article explains how to solve the problem that redirects your website to ordering.co.

1.- Once you log in to your builder, click on "Edit" to access your Ordering Web settings.

2.- On the Developer tab select "Search and Replace" option.

3.- Copy this "HTACCESS 404" and paste on the name field.
4.- Copy and paste this ".htaccess" in the file field.
5.- Copy and paste this code into the search field.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]


# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]

# If the requested pattern is file and file doesn't exist, send 404
RewriteCond %{REQUEST_URI} ^(\/[a-z_\-\s0-9\.]+)+\.[a-zA-Z]{2,4}$
RewriteRule ^ - [L,R=404]

# otherwise use history router
RewriteRule ^ /index.html

</IfModule>


################# old code not working #######
#RewriteEngine On  
## If an existing asset or directory is requested go to it as it is
#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
#RewriteRule ^ - [L]

## If the requested resource doesn't exist, use index.html
#RewriteRule ^ /index.html



6- Copy and paste this code into the replace by field.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

ErrorDocument 404 /https://www.yummi.co.nz/404

# If an existing asset or directory is requested go to it as it is
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
RewriteRule ^ - [L]

# If the requested pattern is file and file doesn't exist, send 404
RewriteCond %{REQUEST_URI} ^(\/[a-z_\-\s0-9\.]+)+\.[a-zA-Z]{2,4}$
RewriteRule ^ - [L,R=404]

# otherwise use history router
RewriteRule ^ /index.html

</IfModule>


################# old code not working #######
#RewriteEngine On  
## If an existing asset or directory is requested go to it as it is
#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -f [OR]
#RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} -d
#RewriteRule ^ - [L]

## If the requested resource doesn't exist, use index.html
#RewriteRule ^ /index.html

7.- Click on "update" button.

8.- If the changes successfully click on "ok" button.

9.- Click on "ADD" to apply this changes.

10.- Click to Build tab and select "Build website" option.
11.- Click to "Build website" button to rebuild your website, and you will see the changes you have just made.

REMEMBER TO VIEW THE CHANGES DELETE ALL THE CACHE FROM YOUR BROWSER OR OPEN IT IN AN INCOGNITO WINDOW

If you need anything else from your Ordering Team, just let us know 👍
Have a Happy Ordering
Houston Salgado
Support Team

Did this answer your question?