Quick Nav:  Online Store   |   Login | Register

rewrite rules

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
Ari Doucette
<100 Posts
Posts:58


10/07/2007 7:27 AM  

Hi,

I have 2 rewrite questions about PageBlaster.

1. If a person types in a URL like "www.mysite.com/forums" is it possible to send them to the page "http://www.mysite.com/tabid/174/Community/Forums.aspx"

2. Is it possible to do 301 redirects for old, deleted, pages?

Thanks,
Ari

John Mitchell
Posts:3033


10/07/2007 7:33 AM  
Hi Ari,
The answer is currently no for both questions. I do plan on adding 301 redirects in the next version though.

The virtual folder one is a limitation of ASP.Net / IIS. What you can do is create a physical folder and then put a default.aspx page in it that does a 301 redirect to your actual page.
Ari Doucette
<100 Posts
Posts:58


10/07/2007 8:06 AM  
OK, thanks. I'll try adding the physical folders.
DotNetNuke has a URL rewrite config file with rewrite rules. Will there ever be a reason to use this if I'm using PageBlaster?
John Mitchell
Posts:3033


10/07/2007 8:11 AM  
Yes, you should use the DNN Friendly Url rewriter (or another third-party rewriter) to create your default Urls.

PageBlaster is not a Url Rewriter. PageBlaster can go beyond default Urls by mapping a Virtual Path to a specific page, but it only does that on each page where you specifiy it explicitly.
Ari Doucette
<100 Posts
Posts:58


10/07/2007 8:19 AM  

What does this mean?

I'm already using PB to do site-wide URL re-writing using this rule:

                   searchFor: ![CDATA[(http[s]?://[^/]+)(/[^"]+)(/(?=tabid)[^"]+)/Default\.aspx(?!\?)]]
                    replaceWith: ![CDATA[$1$3$2.aspx]]

Should I be doing this in the DNN Siteurls.config file instead? Would the same text for the rule work? Can I also use the DNN url rewriter to do the 301 redirects?

John Mitchell
Posts:3033


10/07/2007 8:33 AM  
Url Rewriting consists of two main operations (the second of which is optional); Mapping INPUT Urls to internal Pages, and Replacing OUTPUT Urls (urls in the Page html) with Urls that match the desired scheme. The SiteUrls.config is used for building the INPUT rewrite Rules.

The PageBlaster Replacement Rule does make PageBlaster turn the default Urls into something more search engine friendly on the OUTPUT of the html to the page, but it is still the Url Rewriter that handles that Url and sends it to the proper page on the INPUT.

No, the DNN Rewriter does not do 301 Redirects.

Ari Doucette
<100 Posts
Posts:58


10/07/2007 8:43 AM  

Thanks,

Looks like there is a good explanation on your site already, here:

 

http://www.snapsis.com/DotNetNuke-Tutorials/tabid/560/forumid/16/postid/6348/view/topic/SEO-Friendly-Urls-using-SiteUrls-config.aspx

 

Ari

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software