Menu Content

Support

> Forums, FAQs & Paid Support
Welcome, Guest
Username Password: Remember me

301 Moved Permanently Error
(1 viewing) (1) Guest
Support forum for users using free edition of JoomSEF 3 (Joomla 1.5 compatible). These forums are mainly for mutual help between users.

Please note that due to our capacity limitations, we do not monitor these forums regularly.
  • Page:
  • 1

TOPIC: 301 Moved Permanently Error

301 Moved Permanently Error 12 years, 6 months ago #3135

  • Denitz
If $mosConfig_live_site is set without www and you try to access the site with www - i.e. www.site.com - it shows the error:

Found
The document has moved here.
 
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.


The components/com_sef/sef.php should be modified:

//Make sure host name matches our config, we need this later.
if (strpos($GLOBALS['mosConfig_live_site'],$URI->host) === false) {
//header(\"HTTP 1.0 301 Moved Permanently\"«»);
header(\"Location: \".$GLOBALS['mosConfig_live_site']);


This header causes error:
malformed header from script. Bad header=HTTP 1.0 301 Moved Permanently: /home/site/public_html/index.php


More info here:
http://www.washington.edu/webinfo/case/debug/common.html
http://forum.joomla.org/index.php/topic,12874.0.html

Re: 301 Moved Permanently Error 1 year, 8 months ago #50949

301, "Moved Permanently"

The HTTP response status code 301 Moved Permanently is used for permanent URL redirection, meaning current links or records using the URL that the response is received for should be updated. The 301 response from the Web server should always include an alternative URL to which redirection should occur. If it does, a Web browser will immediately retry the alternative URL. This is the best way to ensure that users and search engines are directed to the correct page. The 301 status code means that a page has permanently moved to a new location.
  • Page:
  • 1
User Login Empty