Quick Nav:  Online Store   |   Login | Register

Setup the Friendly Url

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
Ronny
<50 Posts
Posts:29


11/01/2007 4:55 PM  

Hi All,

I am trying to setup a friendly Url on my website, but I don;t have any luck doing it. This is what i have done. I installed page blaster module as documented, then go to edit and create Url rule on portal level. I want to replace this Url:

https://domainName.com/Registration/tabid/55/Default.aspx into

https://domainName.com/Registration.aspx.

When I did that, I received the Server error, the resource cannot be found. HTTP 404. Can anyone help me of what I am missing here. Thanks.

John Mitchell
Posts:3268


11/01/2007 5:01 PM  
Hi Ronny,
You need to also create a virtual path using the PageBlaster module on that page.

Put Registration.aspx in the Virtual Path field and save.
Ronny
<50 Posts
Posts:29


11/01/2007 5:57 PM  

Hi John,

 

I thank you for your quick response. I did like you said but then it always redirect me to the home page instead of to the registration page. Here is what I am trying to accomplished. Most of the times we send an email to customer to register into our site and provide them with the link where they can just click and register. By default, the link looks ugly and not user friendly, so, instead of sending them with the long url, i want just send them with www.domainname.com/register.aspx. Can we do this with this module? Thanks.

John Mitchell
Posts:3268


11/01/2007 6:07 PM  
Yes, that is exactly what the virtual path setting is for.

The PageBlaster module has to be on the Register page and then you can edit the settings for Virtual Path on that page.
Ronny
<50 Posts
Posts:29


11/01/2007 6:17 PM  

Hi John,

Can you help me of what I am missing here?

1. I put the module on the registration page.
2. I go to edit then add register.aspx into the virtual path
3. I add this in search for Url - Registration in Page Rules:
Registration/tabid/55/Default.aspx
and Replace With register.aspx
4. I leave the Portal rules empty
5. I save the config. 

It still redirect me to the home page...

John Mitchell
Posts:3268


11/01/2007 8:11 PM  
Steps 1 & 2 are all you should need for the input url.

Try putting a slash in front of the virtual path ( /register.aspx).

You might also try changing it to something else like MyRegister.aspx and see if that works, then change it back.

The other steps are for changing the Url in the output of your page, so if this is a page on your navigation menu then you should make it a Portal Rule since you will want it to be changed in the menu no matter what page you are on.

If you still can't get it to work, feel free to contact me directly and I'll take a look at your setup.
Ronny
<50 Posts
Posts:29


11/02/2007 1:01 AM  

Hi John,

It is still not working. I also tried to put the same rules in Portal rules, but it still point to the home page everytime I type the url as https://mydomain.com/registerAccount.aspx. FYI, I use DNN 4.3. Any idea...Thanks.

John Mitchell
Posts:3268


11/02/2007 6:40 AM  
Is this a child portal? If so, that may be the problem, although it doesn't look like that is what you have from the original post.

In the DesktopModules/Snapsis/PageBlaster/Config folder is a file called ResourceLocationTable.config, take a look inside that and see if it is mapping the correct tab to the correct virtual path.

Ronny
<50 Posts
Posts:29


11/02/2007 11:35 AM  

Hi John,

Sorry for being unclear from the beginning. So here is how I have setup my environment. This is not a child portal. The page that I am trying to refer is the registration page. I created a new page called Registration. This page is hidden and it is not showing on the menu tab. I set to visible only for unauthenticated user. User can access it by clicking on the register link which setup in skin. Also, I put the page blaster module on this registration page and I set only administrator can view this module. Hope this helps to bug the problem. Thanks again for your help.

John Mitchell
Posts:3268


11/02/2007 12:27 PM  
Go ahead and set the PageBlaster module to be viewable by all users. You can turn off the container and it won't be visible at all.

You may also want to make the registration page accessible by all users even if it is hidden. This may be the reason why it is redirecting to home page.
Since it is not visible in the menu you do not need the Replacement Rule (your step 3 above).
Can you naviagte to the regular url without getting redirected to the home page?
Ronny
<50 Posts
Posts:29


11/02/2007 1:12 PM  
Posted By John Mitchell on 11/02/2007 12:27 PM
Can you naviagte to the regular url without getting redirected to the home page?


What do you mean with that? I did all like what you're saying, make the page to all users as well as the page blaster module. But it still redirect me to home everytime I type the Url in the address bar as http://mydomain.com/registerAccount.aspx.

It is working fine (NOT go to home) if i type this original url: https://domainName/Registration/tabid/55/Default.aspx. Thanks.

John Mitchell
Posts:3268


11/02/2007 1:18 PM  
I was meaning could you get there with the original Url which you answered.

I don't understand what could be happening, did you look in that ResourceLocationTable.config file?

If you want to contact me directly with the actual Url then I'd be glad to take a look.
Ronny
<50 Posts
Posts:29


11/02/2007 1:32 PM  

This is the xml format in ResourceLocationTable.config file:

resourceLocationTable
    resourceLocationItem virtual-path="/registeraccount.aspx"
   url="/default.aspx?tabid=55"
resourceLocationTable

What is your contact info?

John Mitchell
Posts:3268


11/02/2007 1:38 PM  
You can contact me by replying directly to the notification from this post or by clicking on my name in the profile.

I have one more thing to check that I just thought of.
Look in the web.config and see if the PageBlaster module is before or after the line for the UrlRewrite module.

Whichever way they are, try switching them around to see if it makes a difference.
Ronny
<50 Posts
Posts:29


11/02/2007 1:51 PM  

Hi John,

It works . I don;t know if this is because I switch the position of module in web.config or because the name on the module and ResourceLocationTable.config is not matching. So, in the edit module, i put the virtual path as /registerAccount.aspx (with uppercase A), however, the .config file replace it with registeraccount (with lowercase A), then I replaced both name into lower A and it works. Hope this helps for everbody.

John Mitchell
Posts:3268


11/02/2007 1:56 PM  

I force the urls into lowercase in the config file and then compare them with the input Url which I also force to lowercase for the compare, so I don't think that is it.

It may have just been the restart of the application from changing the web.config.
If you want to try changing the position of the module in web.config again we could determine if that was it.
But if you don't want to mess with it now that it is working I totally understand.

Ronny
<50 Posts
Posts:29


11/02/2007 6:46 PM  

Thanks, John for all your help. I guess it is because the order of the module in the web.config.

I have another question regarding this module. The Login page and Send Password reside in the same page, so, how can I change the original Url for both. Ideally, I would like to have:

http://www.mydomain.com/login.aspx  - - for login and
http://www.mydomain.com/forgotpassword.aspx - - for sending forgot password

As always, thanks in advance.

John Mitchell
Posts:3268


11/02/2007 9:19 PM  
The Send Password module is loaded by putting ctl=SendPassword on the querystring, so you can create the VirtualPath for the Login page, and then open that ResourceLocationTable.config file and copying that entry to make a new one.

On the new entry add &ctl=SendPassword to the url attribute.
Ronny
<50 Posts
Posts:29


11/05/2007 12:56 PM  

Hi John,

Past weekend we had the issue that customer cannot download anything from our site. I am using Bring2Mind DMX Document Exchange for our document module. After I took out the Page Blaster module, everything seems work fine. Do you know what cause this and how to solve it? FYI, I commented out the Compression module from web.config, but not deleted it. Is that the reason why this is happened? Another thing I notice that sometime it prevent me from logout. It keeps me sign in eventhough I click on the logout link. Please help...

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 > Setup the Friendly Url



ActiveForums 3.7
Powered by: Snapsis Software