Redirect 404 Error

Helicon Ape provides support for Apache .htacces and .htpasswd configuration files for Microsoft IIS.
User avatar
Posts: 20
Joined: 25 Sep 2014, 13:59

Redirect 404 Error

07 Nov 2014, 12:10

Is there a way to redirect 404 errors to another page? We are using the SEO module, and want to prevent a user from getting a 404 error if they try to manipulate the SEO URL. We want to redirect them back to the home page. Not every page is under SEO module control and we are using the database to rewrite the URLs.

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: Redirect 404 Error

10 Nov 2014, 07:15

Hello,

Please try to use the following rules above your seo-rules:

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .? /index.htm [R=301,L]

User avatar
Posts: 20
Joined: 25 Sep 2014, 13:59

Re: Redirect 404 Error

10 Nov 2014, 15:26

Thanks Anton!

I ended up placing at the end of my rules. When I had it at the top, every SEO page redirected to the home page. Placing it at the bottom seemed to allowed my SEO and other Rewrite rules to fire first.

Return to Helicon Ape

Who is online

Users browsing this forum: No registered users and 3 guests