Redirect to wrong address

Redirect to wrong address

by mandy honeyman -
Number of replies: 3
Hello,
every now and again (but irritatingly often), for example when clicking continue button after receiving an error, or after submitting news to News Forum, I get redirected to the "wrong" url i.e. lvc.org instead of www.lvc.org (which is the cookie address for my login).

Does anyone know if this is a) a bug b) a setting in config c) a config on the server?

Help please.

thanks.
Mandy
Average of ratings: -
In reply to mandy honeyman

Re: Redirect to wrong address

by Richard Crawford -
This isn't a bug, but I would check your Moodle configuration, specifically your config.php file.  Make sure that your $CFG->wwwroot variable is set to "http://www.lvc.org" and not "http://lvc.org".  If that isn't it, you may be able to add a redirect in your httpd.conf file (assuming you have Apache).
In reply to Richard Crawford

Re: Redirect to wrong address

by mandy honeyman -
Thanks for replying Richard.
I've checked config.php and it points to http://www.lvc.org/courses (as it should).

Unfortunately (or fortunately) I don't have access to the necessary file on the server, I'll try to ask the hosting service to make change. If anyone could point me in the direction of the required parameter (and in exactly which file) I'd be very grateful.

cheers
Mandy
In reply to mandy honeyman

Re: Redirect to wrong address

by mandy honeyman -
I take it back, I can edit the necessary file (just through a panel), can anyone please tell me what I should be adding (the alias appears to be set, which is the one I would have thought would have been needed)?

edited (***) for security:

<VirtualHost ***>
ServerAdmin  webmaster@lvc.org
DocumentRoot /hsphere/local/home/***/lvc.org
ServerName   lvc.org

ServerAlias  www.lvc.org  d65563.users24.thinkwebhosting.com
User         ***
Group         ***

AddType text/html .shtml
AddHandler server-parsed .shtml
<IfModule mod_php4.c>
AddType application/x-httpd-php .php3
AddType application/x-httpd-php .php
AddType application/x-httpd-php-source .phps
</IfModule>
# TransferLog enabled
AddHandler cgi-script .pl
ScriptAlias /cgi-bin    "/hsphere/local/home/***/lvc.org/cgi-bin"



<DIRECTORY /hsphere/local/home/***/lvc.org>
OPTIONS  Indexes Includes ExecCGI FollowSymLinks
AllowOverride All
</DIRECTORY>
IndexOptions FancyIndexing
</VirtualHost>