-5

My HTML pages (e.g. cv.html) carry the file extension to the URL when loaded.

So I have www.mysite.com/cv.html

and I want:

www.mysite.com/cv

How do I do this??

Chris G
  • 449
  • 1
  • 5
  • 19

1 Answers1

0

You need URL rewriting. You need to go to your .htaccess file and write something like this.

RewriteEngine On
RewriteRule ^cv?$ cv.html [NC,L]

If your user types in www.mysite.com/cv, it will show up contents of www.mysite.com/cv.html

Last parts are flags. NC (case insensitive).L(last - stop processing rules)

Emma
  • 60
  • 10