Changing base url to allow relative links

I have a Wordpress site that is located in a sub-directory:


However, when I create link in my website I must include the sub-directory folder in my relative urls, or the path will be incorrect. This is a problem because I am always transferring websites, and it's becoming tedious.

Is there a way to force the root url as when creating relative urls?

For example, I would like to create a relative url in my pages without having to worry about the extra folder being included (i.e. I want to write it like this in my pages '/wp-content/theme/twentyten/images/sample.png')


<base href=""> or, for links to open in new tabs: <base href=" target="_blank">

You should add this to your header.php in Appearance > Editor

Need Your Help

Agility.js + jQueryUI, pass parameters to event handlers in controller

javascript jquery-ui model-view-controller agility.js

The Agility.js documentation seems to say pretty clearly that Agility objects can accept any valid jQuery event type:

DataGridTextColumn binding for IMultiValueConverter not working

c# wpf imultivalueconverter

I have this DataGridTextColumn that I'm trying to place a IMultiValueConverter on.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.