Redirect 404 Error
3 posts
• Page 1 of 1
- voidinutah
- Posts: 20
- Joined: 25 Sep 2014, 13:59
Redirect 404 Error
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.
Re: Redirect 404 Error
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]
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]
- voidinutah
- Posts: 20
- Joined: 25 Sep 2014, 13:59
Re: Redirect 404 Error
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.
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.
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 3 guests