Streaming live at 10am (PST)

Php extension instead html


#1

Hi,
With webflow I create a website with a menu bar.
But as I'm using php code on some pages, my website needs php extension instead of html.
The problem is my menu...
Webflow, when I export the website, is giving a html extension to all page.
It means I have to manually replace html extension on all links and on every page manually by php.

So, my question is : is it a way to redirect ex: link1.html to link1.php with a .htaccess ?

I hope you can understand my english and give some explanation...


#2

Just add something like this to your htaccess file:

RewriteEngine On
RewriteBase /
RewriteRule ^index\.html?$ / [NC,R,L]

Should be good to go after that.


Remove or add HTML extension to a link
#3

Thanks I'm going to try it..

Alex.


#4