Jump to content

Convert the links in the template from .php to .html


Recommended Posts

Hi, i would like to convert with a rule all the links of the template which are .php to .html

I tried to insert this rule in the .HTACCESS file:

Quote

RewriteCond% {THE_REQUEST} (. *) \. Php
RewriteRule ^ (. *) \. Php $ $ 1.html [R = 301, L]
RewriteCond% {THE_REQUEST} (. *) \. Html
RewriteRule ^ (. *) \. Html $ $ 1.php [L]

and it actually works, it converts all pages from .php to .html including GET variables.

The problem is that other things don't work: how to check if a domain exists, or not to enter the WHMCS panel and more.

Is there a way to convert only the template pages to .html and leave the other pages as they are so they can use the WHMCS panel or cart and more?

Thank you

Link to comment
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated