Changing the homepage from default.aspx to /

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
daviddavis
Ensign (ENS)
Ensign (ENS)
Posts: 10
Joined: Wed Sep 03, 2008 7:03 am

Changing the homepage from default.aspx to /

Post by daviddavis » Mon Dec 15, 2008 10:08 am

Hello

How do I change the AC homepage from http://www.mysite.com/default.aspx to just http://www.mysite.com/

?

Thank you for your help in advance!

David

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Changing the homepage from default.aspx to /

Post by jmestep » Mon Dec 15, 2008 1:37 pm

If you don't type the page name into the URL and you will automatically go to the default.aspx and the page name doesn't show in the URL. Or am I not understanding?
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

afm
Captain (CAPT)
Captain (CAPT)
Posts: 339
Joined: Thu Nov 03, 2005 11:52 pm
Location: Portland, OR
Contact:

Re: Changing the homepage from default.aspx to /

Post by afm » Mon Dec 15, 2008 2:04 pm

I think he is looking for a way to change the internal links to the home page from "/default.aspx" to "/". That can help with Google Page Rank (which treats / and /default.aspx as 2 separate pages).

I noticed that NavigationHelper.cs in the App_Code directory contains the string "~/Default.aspx" in several places. You could try changing all of those to "~/". I have never tried this, so you are on your own.
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing

daviddavis
Ensign (ENS)
Ensign (ENS)
Posts: 10
Joined: Wed Sep 03, 2008 7:03 am

Re: Changing the homepage from default.aspx to /

Post by daviddavis » Tue Dec 16, 2008 11:56 am

Hi Judy and AFM,

Thank you both for your help! Let me try to offer a little clarification...

I see that if I go to http://www.mysite.com I stay there – I don’t go to http://www.mysite.com/default.aspx

However, if I go to mysite.com, I am taken to http://www.mysite.com/default.aspx

Since I can go to http://www.mysite.com and it works fine as we want it to (and even if I click on Home link in our AC site), I am not sure if this an Able Commerce issue, or not.

Do you know where this is controlled?

I thought it might either be in the AC administrator screen, the .htaccess file, or over at godaddy, who controls the DNS record for the mysite.com domain.

Thank you again!
-David

kastnerd
Commodore (COMO)
Commodore (COMO)
Posts: 474
Joined: Wed Oct 22, 2008 9:17 am

Re: Changing the homepage from default.aspx to /

Post by kastnerd » Tue Dec 16, 2008 2:15 pm

sounds like the code that changes you from mysite.com to http://www.mysite.com adds the default.aspx

daviddavis
Ensign (ENS)
Ensign (ENS)
Posts: 10
Joined: Wed Sep 03, 2008 7:03 am

Re: Changing the homepage from default.aspx to /

Post by daviddavis » Tue Dec 16, 2008 2:47 pm

Hi Kastnerd,

I would agree with you but where is that code?

Thanks for your help!
David

User avatar
jmestep
AbleCommerce Angel
Posts: 8164
Joined: Sun Feb 29, 2004 8:04 pm
Location: Dayton, OH
Contact:

Re: Changing the homepage from default.aspx to /

Post by jmestep » Tue Dec 16, 2008 2:59 pm

That isn't standard Able code if that is what is doing it. If the code hasn't been customized, it would be either in your IIS settings or possibly something from GoDaddy or if you are who I think you are, a redirect from your old site?
Judy Estep
Web Developer
jestep@web2market.com
http://www.web2market.com
708-653-3100 x209
New search report plugin for business intelligence:
http://www.web2market.com/Search-Report ... -P154.aspx

User avatar
AbleMods
Master Yoda
Master Yoda
Posts: 5170
Joined: Wed Sep 26, 2007 5:47 am
Location: Fort Myers, Florida USA

Re: Changing the homepage from default.aspx to /

Post by AbleMods » Tue Dec 16, 2008 7:44 pm

daviddavis wrote:Hi Judy and AFM,

Thank you both for your help! Let me try to offer a little clarification...

I see that if I go to http://www.mysite.com I stay there – I don’t go to http://www.mysite.com/default.aspx

However, if I go to mysite.com, I am taken to http://www.mysite.com/default.aspx

Since I can go to http://www.mysite.com and it works fine as we want it to (and even if I click on Home link in our AC site), I am not sure if this an Able Commerce issue, or not.

Do you know where this is controlled?

I thought it might either be in the AC administrator screen, the .htaccess file, or over at godaddy, who controls the DNS record for the mysite.com domain.

Thank you again!
-David
The issue is due to how Able licensing works. Your site is licensed for "www.mysite.com". When the AC7 HTTP handlers see the incoming request, they check the incoming URL. If the incoming URL matches what domain the site is licensed for, IIS continues uninterrupted and masks the "/default.aspx".
If the incoming domain does not match i.e. "mysite.com", the AC7 HTTP handler redirects to "http://<licenseddomain>/Default.aspx to enforce the licensing and guarantee the home page is hit.
Joe Payne
AbleCommerce Custom Programming and Modules http://www.AbleMods.com/
AbleCommerce Hosting http://www.AbleModsHosting.com/
Precise Fishing and Hunting Time Tables http://www.Solunar.com

Post Reply