Quick Nav:  Online Store   |   Login | Register

Rewrite Question / Issue

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
quest4denali
<100 Posts
Posts:63


09/17/2007 3:57 PM  

Hello,

I'm running into something kind of interesting.

If click on the top nav of my site (www.bahrenburgs.com) and select Software | GoldFish.Net it takes me to http://www.bahrenburgs.com/Software/GoldFishNet.aspx

Which is the Url that I'm using PB to rewrite to.

If I click on the links module on this page http://www.bahrenburgs.com/Software.aspx and select "GoldFish.Net Information" it opens the following Url http://www.bahrenburgs.com/Software/GoldFishNet/tabid/57/Default.aspx

Does PB re-write values from the links module?

John Mitchell
Posts:3353


09/17/2007 4:05 PM  
Hi Ben,
Rewriting a Url is a two step procedure. You can create a virtual path to a page which maps the Url to a page from a request coming into the site.

To change the value of links that are sent back out in a response you need to create a replacement rule.

In the case you described above, you probably want a Portal Rule like this:

SearchFor: GoldFishNet/tabid/57/Default\.aspx
ReplaceWith: GoldFishNet.aspx
quest4denali
<100 Posts
Posts:63


09/17/2007 4:32 PM  

Hi John,

I have a site rule setup like the following.  It seems to work on all of the pages, just seems to be an issue with the link module.

Search for : Software/GoldFishNet/tabid/57/Default.aspx

Replace with: Software/GoldFishNet.aspx

I have a virtual path setup for the page as /Software/GoldFishNet.aspx

John Mitchell
Posts:3353


09/17/2007 4:39 PM  
Your links are pointing to LinkClick.aspx so DNN can track the links, which in turn redirects internally to the original Url. If you want to track your links then you can just leave it like that.
quest4denali
<100 Posts
Posts:63


09/17/2007 4:44 PM  

Thanks John,

Do you know if I could use Friendly Url ( not really friendly... ) to put them into a better format?

John Mitchell
Posts:3353


09/17/2007 4:51 PM  
I'm not sure what you mean. Those are in DNN's Friendly Url format. Are you talking about the Human Friendly Urls that Scott has on Ventrian.com?

I wouldn't worry about those links. They are only used from a redirect and a search engine is not going to index it that way.

If you really want to optimize it, then the best way is to use a regular html module and put your friendly links in directly. I never use the links module myself, as it causes way too much overhead in my opinion.
quest4denali
<100 Posts
Posts:63


09/17/2007 4:57 PM  

Good point.  Had to give up Scott's friendly links.  They don't seem to be working with 4.6.

Figured that I'd give PB a go, so still learning.

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
Forums >Snapsis Product Support >PageBlaster > Rewrite Question / Issue



ActiveForums 3.7
Powered by: Snapsis Software