Hi, In my content there are external links for example: http:// www, externalwebsite, com, and if I add them into my content with http;//, then when I click on the link, I can land on the external website. But whenever I add a link without http;//www, only externalwebsite,com, then I am landing on http;//www, mywebsite, com/externalwebsite,com/, which is a 404 page. Because of this problem, I am receiving error reports on google webmastertools and therefore my websites rank decreased. How can I configure it so, so that if a link does not have any http:// at the beginning can still go to the externalwebsite? Thanks for your help!
Sorry I could not open a topic with writing h t t p : / / www externalwebsite com , because DP tries to connect that server but can not find and I can not open a topic because of this... So stupid....
The h t t p:// is what tells the web browser it needs to look for the link on the Internet. That's why when you don't include h t t p://, the web browser tries to find that location on your website instead of somewhere else online. Use the reports from Google Webmaster Tools to see where the incorrect links are on your site, then fix them by adding h t t p:// .
Actually I am collecting data like a directory, the links are almost on every post which are around 10k on my website. That is why I need some how chnge something in the source code.
You can preform a search and replace, but be really careful and backup everything. given: <a href="web.com">link</a> Code (markup): replace <a href=" Code (markup): with <a href="http://www. Code (markup): If there are other links on your page that already have the http:// Code (markup): you can do a selective search and replace for specific sections of your page.
Search and replace what? I am pulling the content from other websites, and I actually have to change something in the source code of the wp, so that it should just add http:// to the links after clicking on them.
The links are stored in the posts in the database. To search and replace this across all of the posts, you will have to make changes at the database level. You will have to: 1) Login to your webhost control panel, usually called cPanel 2) Go down to Databases, and launch phpMyAdmin 3) Select the database for the blog 4) Browse the table for the posts (usually called wp_posts) 5) The post data is usually stored in post_content - review the link that is stored in sql - SELECT `post_content` FROM `wp_posts`(for each row in the table). To test you can use the Limit clause 6) You will have to execute a command to update the link "<a href=" with <a href=http:// If this does not make any sense to you, then it might be wise to hire a mysql database person on oDesk to fix this for you
I know how to edit it, it makes sense to me, but the problem that nobody gets is that I am pulling content and the new added links will also have the same problem. Anyway I found a solution. Simply installed a plugin which redirects all 404 not found errors to the homepage, the problem is at least resolved.
Same here: http://wordpress.org/plugins/404-redirection/ At least google thinks, everything is ok (but actually worse, now the user have no chance to go the the link. Google algorithm sucks)