3/31/2007 5:52:12 PM
RE:https url rewriting
I’m not at your stage yet, as I still have ‘localhost’ in Site Manager > Edit Site > Site domain name.
So, you have a link from one page to another page within the same site. When you save, the url then looks different than when you entered it, but what happens when you click on the link – does it work?
Where I have links from one page to another within the same site, I code them as follows:
<a href="~/contact-us.aspx">Contact Us</a>
Comparing this with your example, the main difference is the Tilde character (~) at the start of the url, which I guess represents the site’s root folder. By using it, you don’t need to enter the http://yourdomain.com part.
In fact, all my main menus in the master page are implemented this way. I first used the Kentico drop-down menu, but it produces a torrent of code. As I didn’t need the drop-down feature, I eventually hand-coded the menus, using this method.