0

How can ı do a index html direct to wp index.php (Latest version of Wordpress). I reviewed the canonical.php but no result

1 Answer 1

1

You can use a simple .htaccess rule as described here.

RewriteEngine On
RewriteRule ^(.*)\.html$ $1.php [L]

Add this to the .htaccess file in the root of your website.

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you for your interest but ı use default wordpress htaccess. I tried, but the result was unsuccessful
Exactly what i want to do a html file direct to wordress script :)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.