InMotion Hosting Support Center

RedirectMatch 403 \[ not working with Inmotion

Category: Wordpress

2012-10-23 4:05 pm EST

Hits: 977
At the top my .htaccess file I have the directive: RedirectMatch 403 \[

This helps to prevent server attacks. This works in my local development environment.[ returns a 403 response header and shows the default "access denied" page from my web server.

However, if I upload the same .htaccess file to my production account on Inmotion,[ return a 404 error and directs users to my 404 page. I don't want this to happen. I want it to return the actual 403 error. Why is Inmotion interpreting my .htaccess file differently?

My website is a Wordpress site, if that helps with info. THanks!

You must login before you can ask a follow up question.

You must login before you can submit an answer.



42,973 Points
2012-10-23 4:36 pm EST
Hello Accessgroup,

The error you're getting requires that you specify either an error message (in the .htacces file) or a file for the error message. This is the reason that you're seeing a 404, because it presently doesn't have a defined error page to which must pointed. You can either create it manually or add the message to the .htaccess file.

If you have any further questions, please contact technical support or leave a comment at the bottom of the page.


Arnel C.

You must login before you can post a comment about this answer.

Like this Question?

Forum Login

You are NOT logged in. You can still browse our Support Center.

To participate within our Community Support Forum:

Need more Help?

Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!