Links not including the "http://www."
Links not including the "http://www."
We are using the Source Code view to post our blog articles and when we insert a hyperlink using the full domain address - the blog seems to strip it of our domain root. So instead of it being "http://www.xyz.com/article.html" it strips it down to "/article.html".
How can I fix this as our articles are syndicated on others websites and we need the full links?
How can I fix this as our articles are syndicated on others websites and we need the full links?
-
- Regular
- Posts: 3652
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: Links not including the "http://www."
Hey Josh. Do you have an example of this? How are you inserting the links... as <a href="http://www.xyz.com/article.html">Link text</a>, or are you simply inserting "http://www.xyz.com/article.html" into the entry?
=Don=
Re: Links not including the "http://www."
Example:
http://www.meritsolutions.com/meritmatt ... obile.html
https://community.dynamics.com/ax/b/mer ... obile.aspx
We are going into the source code and posting it into <a href="...">text</a>.
http://www.meritsolutions.com/meritmatt ... obile.html
https://community.dynamics.com/ax/b/mer ... obile.aspx
We are going into the source code and posting it into <a href="...">text</a>.
-
- Regular
- Posts: 3652
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: Links not including the "http://www."
So, you inserted this:
But it gets trimmed to this:
Is that correct?
Code: Select all
<a href="http://www.meritsolutions/technology/enterprise-mobile-solutions.html">Microsoft Dynamics AX Mobile</a>
Code: Select all
<a href="/technology/enterprise-mobile-solutions.html">Microsoft Dynamics AX Mobile</a>
=Don=
-
- Regular
- Posts: 3652
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: Links not including the "http://www."
Does it trim the link if you insert it using the link button in the editor?
=Don=
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Links not including the "http://www."
Hi!
First off: It's actually a good thing that those links are stripped. It's always better to have relative URLs in your entries, simply because if you ever change the host, the entry links will work properly.
Now for the reason - I believe if you use the WYSIWYG editor, it does this relpacement. Also, the xhtmlcleanup event plugin provides such a "cleanup" option if I remember correctly...
First off: It's actually a good thing that those links are stripped. It's always better to have relative URLs in your entries, simply because if you ever change the host, the entry links will work properly.
Now for the reason - I believe if you use the WYSIWYG editor, it does this relpacement. Also, the xhtmlcleanup event plugin provides such a "cleanup" option if I remember correctly...
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
-
- Regular
- Posts: 3652
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: Links not including the "http://www."
But in his case, its not such a good thing. His entries are being fed to other sites, I assume via rss, and that relative link - once posted on another site - is invalid, because it does not point to his domain.garvinhicking wrote:Hi!
First off: It's actually a good thing that those links are stripped. It's always better to have relative URLs in your entries, simply because if you ever change the host, the entry links will work properly.
=Don=
Re: Links not including the "http://www."
Relative links in rss are automatically rewritten. If that is not working, that would be an important bug to fix.
Re: Links not including the "http://www."
Hi Everyone - Sorry, I was traveling this week.
1. Yes, it seems to do it when I click Insert Link as well.
2. While it may make sense to have relative URLs for future ease of use - it is not SEO friendly. Which is one of the main reasons why people blog - to increase the SEO of their site. If our articles get picked up on Microsoft's website - that brings a lot of authority to our article. However, we lose ALL of that when people can't click through.
Recommendations?
1. Yes, it seems to do it when I click Insert Link as well.
2. While it may make sense to have relative URLs for future ease of use - it is not SEO friendly. Which is one of the main reasons why people blog - to increase the SEO of their site. If our articles get picked up on Microsoft's website - that brings a lot of authority to our article. However, we lose ALL of that when people can't click through.
Recommendations?
Re: Links not including the "http://www."
How does it get picked up? See above, RSS should deliver the fully qualified URL.meritweb wrote:If our articles get picked up on Microsoft's website
Running s9y at https://erack.net/blog/
Re: Links not including the "http://www."
The blog is syndicated via the RSS feed.
I don't think the issue is the RSS - it is the blog. If I use the WYSIWYG editor, the blog shortens the links.
If I turn the WYSIWYG editor off - then the blog does not shorten the link. It keeps the root domain - which is what I want.
I don't think the issue is the RSS - it is the blog. If I use the WYSIWYG editor, the blog shortens the links.
If I turn the WYSIWYG editor off - then the blog does not shorten the link. It keeps the root domain - which is what I want.
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Links not including the "http://www."
Hi1
Where do you get the fact from that the absolute http-Link would be required? That goes against HTML conformity...every spider, robot, SEO-tool would automatically deduce the proper FQDN (domain name) first based on the host, then overriden by a possible base-href tag, then override by an absolute link.
Really there shouldn't be any need to have an absolute link, it would not increase SEO. See http://blog.squareroot-inc.com/should-i ... -purposes/ for a better formulated answer.
HTH,
Garvin
Where do you get the fact from that the absolute http-Link would be required? That goes against HTML conformity...every spider, robot, SEO-tool would automatically deduce the proper FQDN (domain name) first based on the host, then overriden by a possible base-href tag, then override by an absolute link.
Really there shouldn't be any need to have an absolute link, it would not increase SEO. See http://blog.squareroot-inc.com/should-i ... -purposes/ for a better formulated answer.
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Links not including the "http://www."
OK, regardless of whether having "http://www.domainname.com/..." or just "/..." as the link helps or hurts SEO is moot at this point.
If people subscribe to our RSS feed, or read our blog on another site which is syndicated from our RSS feed, then ALL of our links will be broken. Therefore, they are not able to access the content we discuss in our articles.
That for sure is not a best practice.
If people subscribe to our RSS feed, or read our blog on another site which is syndicated from our RSS feed, then ALL of our links will be broken. Therefore, they are not able to access the content we discuss in our articles.
That for sure is not a best practice.
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Links not including the "http://www."
Hi!
Then I misunderstood you, I thought you were saying that the RSS-Feed was fine. Sorry, I was really focussing on the actual need for absolute links on the page itself.
The RSS feed actually only puts in absolute URLs if those lie within the Serendipity directory. Your links point outside of that.
Thus, it really will be the only way to be properly addressed to change the WYSIWYG editor to not parse out absolute links. Can you tell me how exactly you enter your links? I just tried with my Serendipity 2.0 instance with the default CKEditor, and when I mark a word and click on the link-button to insert a hyperlink, I can properly insert a full domain name there:
https://www.dropbox.com/s/446o56btovd12 ... 2.png?dl=0
https://www.dropbox.com/s/f8cy5fqa4zm3k ... 5.png?dl=0
Can you show me how/where you insert your link that gets stripped?
Regards,
Garvin
Then I misunderstood you, I thought you were saying that the RSS-Feed was fine. Sorry, I was really focussing on the actual need for absolute links on the page itself.
The RSS feed actually only puts in absolute URLs if those lie within the Serendipity directory. Your links point outside of that.
Thus, it really will be the only way to be properly addressed to change the WYSIWYG editor to not parse out absolute links. Can you tell me how exactly you enter your links? I just tried with my Serendipity 2.0 instance with the default CKEditor, and when I mark a word and click on the link-button to insert a hyperlink, I can properly insert a full domain name there:
https://www.dropbox.com/s/446o56btovd12 ... 2.png?dl=0
https://www.dropbox.com/s/f8cy5fqa4zm3k ... 5.png?dl=0
Can you show me how/where you insert your link that gets stripped?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/