Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Help Groups for Snitz Forums 2000 Users
 Help: MOD Implementation
 Portal.asp as default forum homepage?
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

Edwin Xie
Starting Member

USA
9 Posts

Posted - 26 July 2005 :  22:13:39  Show Profile
I don't know if it ever occurred to anyone, but I want portal.asp (from the Portal MOD) to be the default forum homepage when I first load my forum via typing only the folder the forum is in (i.e. www.somesite.com/forum) and I want it to load portal.asp first instead of default.asp. Is there any code that can do that? Or do I need to contact the site service provider to change it?

StephenD
Senior Member

Australia
1044 Posts

Posted - 26 July 2005 :  22:19:30  Show Profile  Send StephenD a Yahoo! Message
You are right, just ask your host to set portal.asp as the home page in IIS.
Go to Top of Page

Edwin Xie
Starting Member

USA
9 Posts

Posted - 27 July 2005 :  03:01:19  Show Profile
The service provider said I have to use a redirecting code to do it, because they can't set portal.asp as the homepage. This is what they gave me:

<%@Language=VBScript%>
<%
SiteNameURL = Request.ServerVariables("SERVER_NAME")

Select Case SiteNameURL
Case "yourdomain.com"
Response.Redirect "page1.asp"

Case "www.yourdomain.com"
Response.Redirect "page1.asp"

Case "yourotherdomain.com"
Response.Redirect "page2.asp"

Case "www.yourotherdomain.com"
Response.Redirect "page2.asp"

Case "subdomain1.yourdomain.com"
Response.Redirect "page3.asp"

Case "subdomain2.yourdomain.com"
Response.Redirect "page4.asp"

Case Else 'redirecting everything other than cases selected above
Response.Redirect "other.asp"
End Select
%>

so I might be able to create a file called index.asp and put the code there.
Go to Top of Page

Edwin Xie
Starting Member

USA
9 Posts

Posted - 27 July 2005 :  03:04:20  Show Profile
But that is confusing.

--EDIT--
I guess index.asp can't be the default page over default.asp. I need help.

Edited by - Edwin Xie on 27 July 2005 03:25:31
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 27 July 2005 :  03:36:24  Show Profile  Visit Gremlin's Homepage
Most hosts let you change these mappings yourself, but if not then the code they gave you above should work fine, you'll just need to name it whatever the current default entry page is.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

Edwin Xie
Starting Member

USA
9 Posts

Posted - 28 July 2005 :  01:41:23  Show Profile
That is just so confusing. I need to switch hosts because I can't change mappings, and they don't support ASP. I thought they did. It's going to be a bummer moving the forum.

Edited by - Edwin Xie on 28 July 2005 01:42:55
Go to Top of Page

Edwin Xie
Starting Member

USA
9 Posts

Posted - 29 July 2005 :  02:03:58  Show Profile
Ah, the other host I tried doesn't let me change the mapping either, however, I want to rename default.asp. I know it is a mind-blowing task, but I want to do it anyway. Does anyone know where to alter the links in the pages of my forum? Please, I really want it done and I would appreciate it if someone can spare the time teling me where and how.
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 29 July 2005 :  02:12:38  Show Profile  Send StephenD a Yahoo! Message
Edwin, try uploading a default.htm and see if your current host will set that as the home page. Open your text editor, paste this in changing it to match your domain, save as default.htm and upload.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<META http-equiv=refresh content=0;URL=http://www.mydomain.com/portal.asp />
Go to Top of Page

Edwin Xie
Starting Member

USA
9 Posts

Posted - 29 July 2005 :  03:02:01  Show Profile
Nah, for some reason, it doesn't set it as the homepage.
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 29 July 2005 :  03:35:20  Show Profile  Send StephenD a Yahoo! Message
Try saving the same code as index.htm and uploading. You need to contact your host again. If they can't set either default.htm or index.htm as a homepage then there is something seriously wrong with them.
Go to Top of Page

Nertz
Junior Member

Canada
341 Posts

Posted - 29 July 2005 :  08:08:03  Show Profile
Edwin, I use a similar solution as StephenD gave you, see it at http://www.beavertonfallfair.ca

If your forums and portal.asp are in a /forums folder off the root where they should be, then create a default.htm in the root with the code StephenD provided above, except change "www.mydomain.com/portal.asp" to "www.mydomain.com/forums/portal.asp". No need to rename default.asp or alter the links within.

cheers,
Nat

Sadly, most Family Court Judges wrongfully reward opportunistic gold diggers
that use our children unjustly as "instruments" of power.


www.fathers-4-justice-canada.ca
Go to Top of Page

Roger Fredriksson
Average Member

Sweden
556 Posts

Posted - 29 July 2005 :  10:08:22  Show Profile  Visit Roger Fredriksson's Homepage
StephenD & Nerz, you solved my problem (the last one?).Thx!

rf/www.avgifter.com
Go to Top of Page

Edwin Xie
Starting Member

USA
9 Posts

Posted - 01 August 2005 :  18:48:45  Show Profile
Hey...you know, you are right! That may be the solution. Thank you to all of you that helped.
Go to Top of Page

Edwin Xie
Starting Member

USA
9 Posts

Posted - 01 August 2005 :  19:25:46  Show Profile
There is one problem when moving all of the forum files to the /forum/ directory. There's just a Internal Server Error.
Go to Top of Page

StephenD
Senior Member

Australia
1044 Posts

Posted - 01 August 2005 :  19:53:07  Show Profile  Send StephenD a Yahoo! Message
Are you using an Access DB? You will need to change your connection string to point to the folder your db resides in. Also, you will need your host to set read/write privileges on that folder.

Q> Why are you moving them at all? Is your forum in your root directory eg. www.mydomain.com/portal.asp
Go to Top of Page

Edwin Xie
Starting Member

USA
9 Posts

Posted - 03 August 2005 :  18:11:38  Show Profile
Ok, the forum was originally in the root directory, but when you told you told what code I should use and Nertz helped with the code, I moved the forum to the forum directory. Heck, I don't know why I chose such a terrible host. I should move it again.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.49 seconds. Powered By: Snitz Forums 2000 Version 3.4.07