What exactly is a perfect URL?

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,477
Points
63
From what I understand, the URL is a uniform resource locator, which means there is uniformity in the format of the website addresses. Am I right on this?
I am confused with url structutre for a website, I don't know it is better to have www as prefix or not, http or https, .html or non html...etc I am building new websites and it would be great if I can build right URL structure for them.
for example, which is in my mind now

Code:
https://www.example.com
https://www.example.com/123-category-name
https://www.example.com/456-post-name.html
Is this right way to have perfect URLs for a website?

What are your comments?
 

VirtuBox

Well-known member
Registered
Joined
May 3, 2016
Messages
1,622
Points
83
From what I understand, the URL is a uniform resource locator, which means there is uniformity in the format of the website addresses. Am I right on this?
I am confused with url structutre for a website, I don't know it is better to have www as prefix or not, http or https, .html or non html...etc I am building new websites and it would be great if I can build right URL structure for them.
for example, which is in my mind now

Code:
https://www.example.com
https://www.example.com/123-category-name
https://www.example.com/456-post-name.html
Is this right way to have perfect URLs for a website?

What are your comments?
you have choose to use or not www on your address, it's just a choice, but when you choose it, make sure the other version is redirected.
https is better than http, not only because google is ranking https website better, but because it provide your all the new features of HTTP/2
And for the .html at the end of your url, it's not needed, and often used by CMS with particular rewrite rules. If your CMS support full rewrite, just use the postname in the url. Post/tag/category ID is not needed.
For me a good structure will be :
Code:
https://yoursite.tld
https://yoursite.tld/title-of-your-article/
https://yoursite.tld/tag/yourtag/
https://yoursite.tld/category/your-category/
 
Newer Threads
Replies
31
Views
18,020
Replies
28
Views
12,467
Replies
5
Views
1,811
Replies
0
Views
1,540
Similar Threads
Replies
6
Views
1,934
Replies
13
Views
5,581
Replies
4
Views
2,251
Jim

Latest Hosting OffersNew Reviews

Sponsors

Tag Cloud

You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an alternative browser.

Top