I am stumped. Can't get the following to work. Basically all it is suppose to do is if some calls a hello.html file it should grab the hello.shtml file.

RewriteEngine On
RewriteBase /
RewriteRule ^(.*).shtml$ /$1.html

So far all i get is 404 errors. This rewrite is placed in a .htaccess.

Thanks ahead of time
KUB356

Recommended Answers

All 2 Replies

It should be like this:

If all you want to do is change the .shtml extension to .html

RewriteEngine on
RewriteRule ^(.*).shtml$	  $1.html [L]

I know it's been quite awhile since this was posted. But I'm just curious if you were able to get it working?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.