سؤال

I have a site constructed using the TinyButStrong template system, so consisting of pairs of .php pages with .html templates.

What rules should I use in a .htaccess file such that any call to a .html page is redirected to the .php?

هل كانت مفيدة؟

المحلول

RewriteRule ^(.*)\.html$ $1.php [NC]
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top