Ronald Rock Registered Users
 Nuke Super Newbie Posts:14

 |
| 9/21/2006 1:38 PM |
|
Can Friendly URLs resolve a page of the form www.mysite.com/page ?
I want the URL to resolve to the correct page - and it is a page, not a child portal.
Can I do this? - thanks! |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12598


 |
| 9/21/2006 9:44 PM |
|
It is possible, but requires some changes to IIS.
I did some experimentation here before. |
|
Scott McCulloch Site Administrator |
|
|
Ronald Rock Registered Users
 Nuke Super Newbie Posts:14

 |
| 9/23/2006 5:30 PM |
|
I am in a hosted environment, so I don't have control over IIS ... now I want to try the form page.mysite.com and have it redirect to www.mysite.com/default.aspx?tabname=page. However, I can't get that to work either. Any thoughts? I'm running DNN v4.3.5 (just upgraded) and have installed FriendlyURL on my site. I do have a DNS wildcard entry that has the same IP as the www entry.
Thanks,
- Ron. |
|
|
|
|
Peter Warren Gold Membership
 Nuke Addict Posts:77

 |
| 9/24/2006 2:30 AM |
|
Create a folder called 'page' under the root of your website and place in it an empty file called default.aspx. This will mean that the error will NOT be captured by IIS and DNN friendly urls can redirect it using the appropriate rule. This will work okay if you do not have too many urls that you want to treat this way. |
|
|
|
|
brian bakkebo Registered Users
 Nuke Newbie Posts:4

 |
| 11/01/2006 2:13 AM |
|
Hello, perhaps someone can help with this.
I need to be able to have this website www.foo.com/moremoney(a landing page) point to a tab or friendly URL, like www.foo.com/moremoney.aspx or http://www.foo.com/MoreMoney/tabid/36/Default.aspx.
I am running version DNN 4.03 and I tried using the siteurl with the rewriterule xml and it is not working properly, once I run it, I type in the address and it redirects me back to the main page. I added a folder with a default.aspx in our DNN root directory as someone sugested in this post to avoid the 404 errors.
I was testing with this code */TEMP >~/Admin/Security/Logoff.aspx?tabid=$1
I tried using Scott's friendly URL's dll(out of frustration) and while it works very nicely(Great Job Scott.) It doesn't do what I need it to.
I read these articles below and I don't know if My webhosting provider will allow all requests go through the ASPNET process? http://www.ventrian.com/Forums/tabid/118/forumid/12/view/topic/postid/5048/tpage/1/Default.aspx http://www.dotnetdevs.com/articles/AttributeBasedURLDispatch.aspx
Is there a way I could just hard code this in DNN to work. I really need to get this working properly
Thanks for your help |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12598


 |
| 11/02/2006 5:04 AM |
|
This is what I would do, if you want to get it working in the short term.
Create a folder call moremoney, go into IIS and add a redirect on that folder to your www.foo.com/moremoney.aspx, but I'm assuming you don't have access to IIS since your in a shared hosting environment, can you add redirects in the console, and who is your host? |
|
Scott McCulloch Site Administrator |
|
|
brian bakkebo Registered Users
 Nuke Newbie Posts:4

 |
| 11/02/2006 5:11 AM |
|
Thanks Scott for your response. I have created a folder called moremoney. We are using webhost4life as our hosting provider. I could not see how I can redirect though through them though? |
|
|
|
|
Scott McCulloch Administrators
 Nuke Master Posts:12598


 |
| 11/02/2006 5:21 AM |
|
I've checked the WH4L console, there is a redirection page, but I don't think it will do what we want.
My suggestion is just create a .asp page in notepad, and add
<% Response.Redirect("SomeUrl.aspx") %>
and put that in the folder (calling default.asp) |
|
Scott McCulloch Site Administrator |
|
|
brian bakkebo Registered Users
 Nuke Newbie Posts:4

 |
| 11/02/2006 6:08 AM |
|
Thanks again Scott. I tried this yesterday and now have tried it again today.
It appears that no matter what I place in the response redirect statement, it just bumps me back to my home page? Here is what my siteurl looks like. [quote] /Temp >Default.aspx .*/TabId/(\d+)(.*)/Logoff.aspx ~/Admin/Security/Logoff.aspx?tabid=$1 .*/TabId/(\d+)(.*)/rss.aspx ~/rss.aspx?TabId=$1 [^?]*/TabId/(\d+)(.*) ~/Default.aspx?TabId=$1 [/quote] here is what my default.aspx looks like: [quote]<% Response.Redirect("http://www.foo.com/TEST/tabid/64/Default.aspx") %> [/quote] Any ideas on this? |
|
|
|
|
brian bakkebo Registered Users
 Nuke Newbie Posts:4

 |
| 11/02/2006 6:22 AM |
|
Thanks Scott again for all your help That worked. I had the file in the directory as an .aspx instead of an .asp.
|
|
|
|
|