Reputation: 18296
My site is written in php and has urls like this:
http://mysite.com/index.php?m=apple&f=show&t=hello-world
I want to change it to SEO friendly url.but i don't know which one is better:
http://mysite.com/apple/hello-world
or
http://mysite.com/apple/hello-world.html
would you help me?
Upvotes: 0
Views: 143
Reputation: 21659
Try to avoid extensions where possible, as they may change over time, and URIs should remain static. Think about old sites that use the .cgi extension, and then migrated to another system, such as PHP. Although HTML is likely to be around for a long time, it too may change.
See Cool URIs don't change for a good introduction.
Upvotes: 2
Reputation: 39872
I would not include the .html
. It doesn't help your users at all. In general, if it is good for users it is good for SEO.
Upvotes: 4