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: General / Current Version (Old)
 wrong path
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

hwfranz
Starting Member

Germany
30 Posts

Posted - 05 July 2001 :  21:13:18  Show Profile  Visit hwfranz's Homepage
Hi
I have the forum located within a subdomain. Now sometimes the forum uses wrong URLs. For example: when I open the member list and want to change to page 2 or 3, the forum tries to connect to
"http://nwp2000.de/nwp2000/Forum/members.asp?whichpage=2&method=postsdesc"
but within this URL the "nwp2000" in front of "Forum" is to much
the right URL should be:
"http://nwp2000.de/Forum/members.asp?whichpage=2&method=postsdesc"
"nwp2000" is the directory of the main domain.
Where can I change this? Can someone help me?

thx a lot
HW

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 06 July 2001 :  02:12:52  Show Profile
For one, I think you might have this "http://nwp2000/" set as your Home URL. Should be "http://nwp2000.de/". But that's the least of your problems.

I think your server might be returning the incorrect links to your forum. Because you can't even log in to your forum, it takes you to "http://nwp2000.de/nwp2000/Forum/default.asp" which is not found. And the script gets the url by doing this "<form action="<% =Request.ServerVariables("URL") %>" method="post" id=form1 name=form1>". The code in red should return "/Forum/default.asp". But it doesn't.

Same thing goes for the members.asp page. It uses this code "Request.ServerVariables("script_name")" to get the url, which should be the same value as before.

So if you check the "Server Information" in your admin options, and look at the "URL" and "Script Name" variables, let me know what value they have. Should be the same.

- David
Go to Top of Page

hwfranz
Starting Member

Germany
30 Posts

Posted - 06 July 2001 :  12:08:25  Show Profile  Visit hwfranz's Homepage
Hi,

this is what the file contains. You must know: tollernet.de is my main domain. the domain nwp2000.de is forwarded to the directory tollernet.de/nwp2000


Variable Name Wert
ALL_HTTP HTTP_ACCEPT:image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* HTTP_ACCEPT_LANGUAGE:de HTTP_HOST:www.tollernet.de HTTP_REFERER:http://nwp2000.de/Forum/admin_home.asp HTTP_USER_AGENT:Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; T-Online Internatinal AG) HTTP_COOKIE:ASPSESSIONIDGGQGGQWS=JEMDILNCELHDDOALPJHNDBLP; %2Fnwp2000%2FForum%2FstrSelectSize HTTP_ACCEPT_ENCODING:gzip, deflate
ALL_RAW Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */* Accept-Language: de Host: www.tollernet.de Referer: http://nwp2000.de/Forum/admin_home.asp User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; T-Online Internatinal AG) Cookie: ASPSESSIONIDGGQGGQWS=JEMDILNCELHDDOALPJHNDBLP; %2Fnwp2000%2FForum%2FstrSelectSize Accept-Encoding: gzip, deflate
APPL_MD_PATH /LM/W3SVC/584/ROOT
APPL_PHYSICAL_PATH \\filer3\webspace\to\www.tollernet.de\htdocs\
AUTH_PASSWORD
AUTH_TYPE
AUTH_USER
CERT_COOKIE
CERT_FLAGS
CERT_ISSUER
CERT_KEYSIZE
CERT_SECRETKEYSIZE
CERT_SERIALNUMBER
CERT_SERVER_ISSUER
CERT_SERVER_SUBJECT
CERT_SUBJECT
CONTENT_LENGTH 0
CONTENT_TYPE
GATEWAY_INTERFACE CGI/1.1
HTTPS off
HTTPS_KEYSIZE
HTTPS_SECRETKEYSIZE
HTTPS_SERVER_ISSUER
HTTPS_SERVER_SUBJECT
INSTANCE_ID 584
INSTANCE_META_PATH /LM/W3SVC/584
LOCAL_ADDR 172.23.44.41
LOGON_USER
PATH_INFO /nwp2000/Forum/admin_info.asp
PATH_TRANSLATED \\filer3\webspace\to\www.tollernet.de\htdocs\nwp2000\Forum\admin_info.asp
QUERY_STRING
REMOTE_ADDR 192.67.198.184
REMOTE_HOST 192.67.198.184
REMOTE_USER
REQUEST_METHOD GET
SCRIPT_NAME /nwp2000/Forum/admin_info.asp
SERVER_NAME www.tollernet.de
SERVER_PORT 80
SERVER_PORT_SECURE 0
SERVER_PROTOCOL HTTP/1.0
SERVER_SOFTWARE Microsoft-IIS/4.0
URL /nwp2000/Forum/admin_info.asp
HTTP_ACCEPT image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, */*
HTTP_ACCEPT_LANGUAGE de
HTTP_HOST www.tollernet.de
HTTP_REFERER http://nwp2000.de/Forum/admin_home.asp
HTTP_USER_AGENT Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0; T-Online Internatinal AG)
HTTP_COOKIE ASPSESSIONIDGGQGGQWS=JEMDILNCELHDDOALPJHNDBLP; %2Fnwp2000%2FForum%2FstrSelectSize
HTTP_ACCEPT_ENCODING gzip, deflate


Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 06 July 2001 :  14:19:18  Show Profile
Well, there's your problem. The forwarding is messing up the links.
For the SCRIPT_NAME and URL attribute, the value is: "/nwp2000/Forum/admin_info.asp"
It adds that to the "http://nwp2000.de/" url.

- David
Go to Top of Page

hwfranz
Starting Member

Germany
30 Posts

Posted - 06 July 2001 :  15:28:36  Show Profile  Visit hwfranz's Homepage
any idea what i can/must/shuld do?

thanks a lot
HW

Go to Top of Page

Davio
Development Team Member

Jamaica
12217 Posts

Posted - 07 July 2001 :  00:03:09  Show Profile
I guess you would have to hard code the urls into your forum code.
You can use this code, and put it somewhere in your inc_top.asp file:
dim strlink
strlink = Mid(Request.ServerVariables("URL"), InstrRev(Request.ServerVariables("URL"), "/")+1)
Then everywhere in your files you would replace "Request.ServerVariables("URL")" and "Request.ServerVariables("script_name")" with this:
<% =strlink %>
For example, you would change this:
<form action="<% =Request.ServerVariables("URL") %>" method="post" id=form1 name=form1>
to this:
<form action="<% =strlink %>" method="post" id=form1 name=form1>
For your members.asp page you would change this:
sScriptName = Request.ServerVariables("script_name")
to this:
sScriptName = strlink
There might be a few other places in the files that they are used so you would need to change all of them.

- David
Go to Top of Page

hwfranz
Starting Member

Germany
30 Posts

Posted - 07 July 2001 :  01:02:18  Show Profile  Visit hwfranz's Homepage
ok, there's some work to do this weekend ;-))
I thank you very much for the detailled help. Without this I would have no chance to overcome.

thx
HW
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.98 seconds. Powered By: Snitz Forums 2000 Version 3.4.07