<?xml version="1.0" encoding="UTF-8"?><!-- generator="bbPress" -->

<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>

<channel>
<title>ThemeShaper Forums Topic: link links from my subdirectory blog to site root -problem with URL</title>
<link>http://themeshaper.com/forums/</link>
<description>Help In Shaping WordPress Themes</description>
<language>en</language>
<pubDate>Tue, 21 May 2013 21:20:02 +0000</pubDate>

<item>
<title>Bluesky on "link links from my subdirectory blog to site root -problem with URL"</title>
<link>http://themeshaper.com/forums/topic/link-links-from-my-subdirectory-blog-to-site-root-problem-with-url#post-16902</link>
<pubDate>Thu, 11 Nov 2010 07:42:46 +0000</pubDate>
<dc:creator>Bluesky</dc:creator>
<guid isPermaLink="false">16902@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;Yes, I guessed that levels were the problem. But I was not sure I could link directly to the root. I will do it this way.&#60;br /&#62;
I will look the WP3 menu...I used a hardcoded menu to maintain my main site design.&#60;br /&#62;
Thank you Helga !
&#60;/p&#62;</description>
</item>
<item>
<title>helgatheviking on "link links from my subdirectory blog to site root -problem with URL"</title>
<link>http://themeshaper.com/forums/topic/link-links-from-my-subdirectory-blog-to-site-root-problem-with-url#post-16878</link>
<pubDate>Wed, 10 Nov 2010 16:25:02 +0000</pubDate>
<dc:creator>helgatheviking</dc:creator>
<guid isPermaLink="false">16878@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;have you given any thought to using a WP3.0 menu?&#60;/p&#62;
&#60;p&#62;but anyway, the problem is in your crazy, RELATIVE links.  basically all those ../ say go up 4 levels from where you are right now and then find the editions.html file.... which as you've noticed doesn't work  when you are deeper into the blog b/c then you need to go up MORE than 4 levels.  where are those files?  are they in the root of your site?&#60;/p&#62;
&#60;p&#62;maybe you could link like this:&#60;/p&#62;
&#60;pre&#62;&#60;code&#62;&#38;lt;a href=&#38;quot;http://www.mysite.com/index.html&#38;quot;&#38;gt;Home&#38;lt;/a&#38;gt;&#60;/code&#62;&#60;/pre&#62;</description>
</item>
<item>
<title>Bluesky on "link links from my subdirectory blog to site root -problem with URL"</title>
<link>http://themeshaper.com/forums/topic/link-links-from-my-subdirectory-blog-to-site-root-problem-with-url#post-16870</link>
<pubDate>Wed, 10 Nov 2010 09:00:01 +0000</pubDate>
<dc:creator>Bluesky</dc:creator>
<guid isPermaLink="false">16870@http://themeshaper.com/forums/</guid>
<description>&#60;p&#62;My blog is in a subdirectory&#60;br /&#62;
&#60;a href=&#34;http://www.mysite.com/blog&#34; rel=&#34;nofollow&#34;&#62;www.mysite.com/blog&#60;/a&#62;&#60;br /&#62;
My blog has a hardcoded menu to maintain the navigation on the all site. Viewers navigate inside the blog and can access the main site ( site home, about, editions etc...) from the menu.&#60;/p&#62;
&#60;p&#62;Today I see that Google shows Crawl Error for urls from my blog to my site root pages. &#60;/p&#62;
&#60;p&#62;Example of my hardcoded menu&#60;br /&#62;
&#60;pre&#62;&#60;code&#62;function add_menu() {
{ ?&#38;gt;

&#38;lt;div id=&#38;quot;menu&#38;quot;&#38;gt;
&#38;lt;ul id=&#38;quot;cent&#38;quot;&#38;gt;
&#38;lt;li&#38;gt;&#38;lt;a href=&#38;quot;../../../../index.html&#38;quot;&#38;gt;Home&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;
&#38;lt;li&#38;gt;&#38;lt;a href=&#38;quot;../../../../editions.html&#38;quot;&#38;gt;editions&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;
&#38;lt;li&#38;gt;&#38;lt;a href=&#38;quot;../../../../about.html&#38;quot;&#38;gt;about&#38;lt;/a&#38;gt;&#38;lt;/li&#38;gt;
&#38;lt;/ul&#38;gt;
&#38;lt;/div&#38;gt;

&#38;lt;?php }

}
add_action....etc...&#60;/code&#62;&#60;/pre&#62;
&#60;p&#62;The URl problem comes out when pages are linked deeper from into the blog i.e : /category/tag...&#60;/p&#62;
&#60;p&#62;I feel there is a big mistake in my code...&#60;br /&#62;
What should I do ?&#60;/p&#62;
&#60;p&#62;More generally, how do I write urls that link back to the root of my site from the blog?&#60;/p&#62;
&#60;p&#62;Thank you,
&#60;/p&#62;</description>
</item>

</channel>
</rss>
