By CharlieL - Wed 18 Sep 2013
|
I'm hoping to get some help for this. I am wanting to try out Kartris to see if it would work for my organization and am able to get it to work on my local machine without any problems. But I'm trying to get a version installed on our server and everything seems to go fine (use same settings as local, include pointing to same DB) but when I go to check out the front page I get a 404 error. For some reason it is redirecting me to another page. The URL I end up at is myServerAddress/kartris/kartris/default.aspx when Kartris itself is just installed at myServerAddress/kartris/.
Any ideas on what could be going on?
|
By Medz - Thu 19 Sep 2013
|
Can you access the backend (myServerAddress/kartris/Admin/) without problems? Might need to check if the correct values are set in config settings - 'general.webshopfolder' and 'general.webshopurl'.
|
By Paul - Thu 19 Sep 2013
|
Yes, this does suggest that the webshopfolder config setting is set to /Kartris, but that Kartris is installed at the root of its web.
Did you copy your local db to the server? If so, login to the back end, and then check the webshopfolder and webshopURL config settings (use the search in back end to find them).
From what you describe, the webshopfolder setting should be blank, and the webshopURL should be:
http://myServerAddress/kartris/
(must have the http:// and the / at the end)
|
By CharlieL - Thu 19 Sep 2013
|
Thanks for the reply. That was my initial thought too, but changing the general.webshopfolder to blank doesn't fix the issue, and the general.webshopurl is https://myserveraddress/kartris/.
I'll continue to look into it, but any other ideas?
Thanks
|
By Mart - Thu 19 Sep 2013
|
Did you change those direct in the db, or via the backend of kartris?
If changed direct in the db, you'd probably have to restart the site
|
By CharlieL - Thu 19 Sep 2013
|
I created a new installation and in changed it in the setup options. Afterwards I confirmed it was correct via the config settings in the backend.
|
By CharlieL - Fri 20 Sep 2013
|
An update when I set the config setting webshopfolder to blank, it redirects it to /kartris/kartrisdefault.aspxI am still struggling with this issue and would like to get past it to see if Kartris would work for my organization.
|
By CharlieL - Fri 20 Sep 2013
|
So the error with the missing / is caused by
If Not Current.Request.IsSecureConnection() Then If InStr(Request.Url.ToString.ToLower, CkartrisBLL.WebShopURL.ToLower) = 0 Then Dim strRedirectURL As String = CkartrisDisplayFunctions.CleanURL(Request.RawUrl.ToLower) 'remove the web shop folder if present - webshopurl already contains this strRedirectURL = Replace(strRedirectURL, "/" & CkartrisBLL.WebShopFolder, "")
If Left(strRedirectURL, 1) = "/" Then strRedirectURL = Mid(strRedirectURL, 2) Response.Status = "301 Moved Permanently" 'append the webshop url Response.AddHeader("Location", CkartrisBLL.WebShopURL & strRedirectURL) End If End If
If I use a break point nad change kartrisdefault.aspx to default.aspx then I get the original error that I mentioned in the first post.
|
By Paul - Sat 21 Sep 2013
|
Your webshopURL config setting should not be https. It should be http.
If you have SSL set up for this web site, you can then set the SSL config setting to turn SSL support on. Search the back end for 'ssl', and you'll find the setting.
Kartris will determine which pages need https and which should use http.
The rules are:
General site visits (anonymous users, search engines, etc.) = http Any page where a user (customer or admin) is logged in = https Any login page (front or back) = https
|