What exactly is a perfect URL?

David Beroff

Well-known member
Registered
Joined
Jun 14, 2016
Messages
1,501
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
21,798
Replies
28
Views
14,557
Replies
5
Views
2,043
Replies
0
Views
1,834
Latest Threads
Replies
1
Views
24
Replies
0
Views
176
Replies
1
Views
37
Replies
2
Views
81
Recommended Threads
Replies
4
Views
3,113
Replies
0
Views
2,136
Replies
1
Views
2,526
Similar Threads
Replies
6
Views
2,327
Replies
13
Views
6,126
Replies
4
Views
2,554
Jim

Latest postsNew threads

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