820 posts
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+5 more
Flinzar says

I’ve searched for it alot, and i use this code:

RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule ^(.*)$ $1.html

in the htaccess file….but im not sure how its suppose to work..can anyone explain please?

3 posts
  • Has been part of the Envato Community for over 4 years
  • Has collected 100+ items on Envato Market
  • Located in United States
amazingsammy says

It’s a regular expression. You’re reading a request, and you’re rerouting it to the same file name with the html after it.

So what you want to do is remove the \.html from your expression, and you’re golden.

by
by
by
by
by
by