InMotion Hosting Support Center

Are .shtml files a problem?


EricH
Asked:
2018-09-06 8:52 am EST

Hits: 30
Hi, I have just (a week or two ago) had my Wordpress blog moved over to Inmotion. Attached to my blog, but outside Wordpress, are a series of files for a series of questions in a survey, mostly .php files, but two of them were .shtml. When my website was transferred across from another host, these files all worked OK, because I tested them.

But just now, I found that the .shtml files were not working. In fact, clicking on a link that should have jumped to either of them triggered the WP 404.php error page, but appended below that page on the screen was the .shtml page but with the wrong formatting. It was bizarre.

I was able to resolve the problem by changing the files and the links to them to .html (I used .shtml on a lot of pages because many of them required this to run includes, but these pages didn't have any includes). So it is all fine, but I am curious.

Is there some problem with Wordpress or Inmotion if I use .shtml files? Does anyone have any idea what was going on?

Thanks.

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

You must login before you can submit an answer.

OTHER ANSWERS

0

jtsp
Staff
1,278 Points
2018-09-06 9:07 am EST
Did your .htaccess file have just the default WordPress code or also this bulk of code or the ForceType code?

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

My .htaccess file starts with these lines:

Options +Includes
AddType text/html .shtml
AddHandler server-parsed .shtml

After that, the only non-standard things I have is a bunch of redirect 301 lines, from when I transferred my HTML pages to Wordpress. Way back, I had a self-coded HTML site, and I used .shtml pages because most of them had includes. When I transferred ac ross to Wordpress, almost all the pages went into Wordpress pages, but a few, part of a quiz with mostly .php pages didn't easily fit into Wordpress, so I kept them out. Along with the .php there were these two .shtml pages.

They worked when I first came across to Inmotion, but then stopped working until I changed them to .html. So I have the solution but I'm trying to understand why. I guess there is some problem with .shtml that I don't know about, but I'd be interested if you could point me in the right direction, please, and I can read up on it. Thanks.
EricH
30 Points
2018-09-07 4:07 am EST
I recommend you contact our live support for additional assistance with this as there may be something else related that we're not aware of. Maybe a plugin or PHP setting is affecting this as well.
jtsp
1,278 Points
Staff
2018-09-07 8:51 am EST
OK, thanks. I'm not sure I want to bother the live support crew, since I have solved the problem by changing my .shtml files to .html. I was just interested in understanding, but I won't take it further. Thanks.
EricH
30 Points
2018-09-10 6:00 am EST
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?

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!