Modify .htaccess for redirect php to html except for one page to be ignored

I use a custom php script (php v.7) and have 5 php pages: index.php, product1.php, product2.php, product3.php, admin.php. <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^example.com$ RewriteRule (.*) https://www.example.com/$1 [R=301,L] RewriteCond %{ENV:REDIRECT_STATUS} ^$ RewriteRule ^(.+?)\.php$ /$1.html [R=301,L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.+?)\.html$ /$1.php [L] </IfModule> <FilesMatch ".(ico|css|jpeg|png|woff|woff2|webp)$"> Header set Cache-Control "max-age=604800, public, no-cache" </FilesMatch> Options -Indexes… Read More Modify .htaccess for redirect php to html except for one page to be ignored

localhost:300/localhost:443 redirect to localhost with nodejs

Hello everybody and thanks in advance for your answer. I have a website which is serve by nodejs and I’m listening on port 300 for http and 443 for https: const fs = require(‘fs’); const https = require(‘https’); const http = require(‘http’); const app = require(‘../app’); const env = require(`../environment/${process.env.NODE_ENV}`); const httpServer = http.createServer((req, res)… Read More localhost:300/localhost:443 redirect to localhost with nodejs