785 posts
  • Microlancer Beta Tester
  • Sold between 1 000 and 5 000 dollars
  • Author had a Free File of the Month
  • Bought between 10 and 49 items
  • Referred between 1 and 9 users
  • Exclusive Author
  • Has been a member for 3-4 years
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
  • Bought between 100 and 499 items
  • Has been a member for 3-4 years
  • 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