开发者

Advise on SEO-friendly URL structures

开发者 https://www.devze.com 2023-03-19 17:08 出处:网络
My site is written in php and has urls like this: http://mysite.com/index.php?m=apple&f=show&t=开发者_JAVA百科hello-world

My site is written in php and has urls like this:

http://mysite.com/index.php?m=apple&f=show&t=开发者_JAVA百科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?


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消