You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
With 2 different permalinks for the same hadith, we have an issue of duplicate pages and link juice being potentially diluted. So at the very least we must choose one canonical permalink structure.
Since the site is commonly referenced, it is important to keep previously used permalinks accessible as well. This can be solved by using either of the solutions mentioned below, no matter which permalink structure is chosen as canon. The chosen structure will also be used while browsing the website.
Possible solutions:
Utilize rel="canonical" HTML tag
301 redirects to the chosen new standard (ruled out, unless there's a strong case)
Currently, we like the rel=conanical solution. It is honored by both Search Engines and common Social Media platforms. That means leaving both links accessible but the alternative method will have the cononical tag added.
Any feedback on the following 2 questions specially is welcome:
Is there a case against using colon (:) in permalinks?
Which permalink structure should be canon?
The text was updated successfully, but these errors were encountered:
Is there a case against using colon (:) in permalinks?
I think that the colon permalink is the way to go as we want to accommodate the other /book-number/hadith-number permalink structure.
Which permalink structure should be canon?
The colon permalink structure should be canon as I find that Ḥadīth number to be the Ḥadīth reference found in books. I have never seen the book-number/hadith-number reference in books.
The only potential case against the colon could be that it may negatively affect SEO. However, I haven't studied SEO so I cannot really comment on it.
Assalaam u Alaikum,
Since 8fe0daa, a user may jump directly to a hadith if they know the reference number, using the following structure:
sunnah.com/collection_slug:###
For example, to jump to Sahih Bukhari 2011, go to sunnah.com/bukhari:2011
This makes verification of ahadith quick, and is generally a more straight-forward link for browsing ahadith.
Limitations:
Works with verified books in our DB only
Examples:
https://sunnah.com/bukhari:1000 (generic case)
https://sunnah.com/muslim:844b (has a space in the hadith number)
https://sunnah.com/nasai:687 (Should not work since that book is not verified)
https://sunnah.com/bukhari:273 (has commas)
Problem:
With 2 different permalinks for the same hadith, we have an issue of duplicate pages and link juice being potentially diluted. So at the very least we must choose one canonical permalink structure.
Since the site is commonly referenced, it is important to keep previously used permalinks accessible as well. This can be solved by using either of the solutions mentioned below, no matter which permalink structure is chosen as canon. The chosen structure will also be used while browsing the website.
Possible solutions:
Currently, we like the rel=conanical solution. It is honored by both Search Engines and common Social Media platforms. That means leaving both links accessible but the alternative method will have the cononical tag added.
Any feedback on the following 2 questions specially is welcome:
The text was updated successfully, but these errors were encountered: