Author |
Topic |
|
Edwin Xie
Starting Member
USA
9 Posts |
Posted - 26 July 2005 : 22:13:39
|
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
|
You are right, just ask your host to set portal.asp as the home page in IIS. |
|
|
Edwin Xie
Starting Member
USA
9 Posts |
Posted - 27 July 2005 : 03:01:19
|
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. |
|
|
Edwin Xie
Starting Member
USA
9 Posts |
Posted - 27 July 2005 : 03:04:20
|
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 |
|
|
Gremlin
General Help Moderator
New Zealand
7528 Posts |
Posted - 27 July 2005 : 03:36:24
|
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
|
|
|
Edwin Xie
Starting Member
USA
9 Posts |
Posted - 28 July 2005 : 01:41:23
|
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 |
|
|
Edwin Xie
Starting Member
USA
9 Posts |
Posted - 29 July 2005 : 02:03:58
|
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. |
|
|
StephenD
Senior Member
Australia
1044 Posts |
Posted - 29 July 2005 : 02:12:38
|
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 /> |
|
|
Edwin Xie
Starting Member
USA
9 Posts |
Posted - 29 July 2005 : 03:02:01
|
Nah, for some reason, it doesn't set it as the homepage. |
|
|
StephenD
Senior Member
Australia
1044 Posts |
Posted - 29 July 2005 : 03:35:20
|
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. |
|
|
Nertz
Junior Member
Canada
341 Posts |
Posted - 29 July 2005 : 08:08:03
|
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 |
|
|
Roger Fredriksson
Average Member
Sweden
556 Posts |
Posted - 29 July 2005 : 10:08:22
|
StephenD & Nerz, you solved my problem (the last one?).Thx! |
rf/www.avgifter.com |
|
|
Edwin Xie
Starting Member
USA
9 Posts |
Posted - 01 August 2005 : 18:48:45
|
Hey...you know, you are right! That may be the solution. Thank you to all of you that helped. |
|
|
Edwin Xie
Starting Member
USA
9 Posts |
Posted - 01 August 2005 : 19:25:46
|
There is one problem when moving all of the forum files to the /forum/ directory. There's just a Internal Server Error. |
|
|
StephenD
Senior Member
Australia
1044 Posts |
Posted - 01 August 2005 : 19:53:07
|
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
|
|
|
Edwin Xie
Starting Member
USA
9 Posts |
Posted - 03 August 2005 : 18:11:38
|
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. |
|
|
|
Topic |
|