824 posts
  • Affiliate Level 1
  • Author Level 3
  • Beta Tester
  • Collector Level 2
+6 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
  • 5 Years of Membership
  • Collector Level 4
  • 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