RedirectMatch 403 \[ not working with Inmotion

Category: Wordpress

accessgroup
Asked:
2012-10-23 4:05 pm EST

Hits: 770
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. www.mysite.dev/[ 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, www.mysite.org/[ 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.

OTHER ANSWERS

0

Arn
Staff
17,840 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.

Regards,

Arnel C.

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

Like this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Need more Help?

Search

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: support@InMotionHosting.com
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!