.htaccess file doesn't seem to work

Category: Wordpress

accessgroup
Asked:
2012-07-20 2:39 pm EST

Hits: 748
Hi, on my local development platform, my .htaccess file generated by Wordpress (and edited by me), restricts people from entering, for example, www.mysite.com/wp-config.php. It will show an "Access Forbidden" error 403. Same thing if someone tries to type www.mysite.com/[ - it protects against potentially malcioous acvitity.

As soon as I uploaded my WP installation to InMotion server, the .htaccess file seems to stop working. If I visit any of the 2 example URLs above on my live InMotion site, I will get Wordpress's default 404 error page - instead of the server's access forbidden page. Does InMotion block my htaccess file or is it something else? Note: the file structure is exactly the same from local to production servers.

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

You must login before you can submit an answer.

OTHER ANSWERS

0

Scott
Staff
19,427 Points
2012-07-23 11:01 am EST
Hello accessgroup,

Our servers are most definitely designed to use your custom htaccess files in order to override the default. This is so you can customize your site to perform the way you want it to.

.htaccess files, however, can be tricky and in the majority of cases, performance can be related to things as simple as the order of the commands.

You may want to check the behavior by doing testing with the individual bits of code to ensure they work independently, then place them together to find out which pieces are conflicting with each other.

Best Regards,
Scott M

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!