Jump to content
boxturt

Redirect All Pages

Recommended Posts

Long time no see! I hope everyone is well. :)

 

I thought I knew how to do this but I am having no luck so I apologize if this has been asked and answered. I am physically changing all my .shtml pages to .html. Isn't there a way to do the redirect in .htaccess in one line? (rather than doing them page by page in Cpanel)

 

Thanks.

 

Ty

Share this post


Link to post
Share on other sites

Yes there is:

 

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

 

That should work I think.

Share this post


Link to post
Share on other sites

Thank you kindly. I'll give this a try in in the next few days. Thanks for the help.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...