#288 Goes to wrong URL when I hit submit

0.8.0
closed
nabber00
Posting (28)
5
2013-10-09
2012-08-30
Anonymous
No

When I post something I noticed that when it goes back to the homepage it adds example.com./index.php instead of example.com/index.php
Also when I viewed source it added the . in front of everything. I did change the Root Directory to link to the folder I'm using, because it's not located in the root...

"<link rel="stylesheet" type="text/css" media="all" href="./themes/common.css" />
<link rel="stylesheet" type="text/css" media="all" href="./themes/GLight/user_style.php" />
<link rel="stylesheet" type="text/css" media="all" href="./themes/GLight/style.css" />
<link rel="stylesheet" media="only screen and (max-width: 800px)" href="./themes/mediumres.css" type="text/css" />
<link rel="stylesheet" media="only screen and (max-width: 640px)" href="./themes/handheld.css" type="text/css" />
<link rel="stylesheet" type="text/css" media="print" href="./themes/print.css" />"

When ever I do something, it changed my URL to add the . after the domain name, so it's difficult to add/edit/delete things on the site.... help!

Discussion

  • nabber00
    nabber00
    2012-08-31

    • assigned_to: nobody --> nabber00
    • status: open --> pending
     
  • nabber00
    nabber00
    2012-08-31

    It sounds like your webserver may use symlinks. In this case, you need to set BASEURL correctly in scripts/config.php. Update this line:

    define('BASEURL', '/' . basename(dirname(dirname(__file__))) . '/');

     
  • Gabor
    Gabor
    2012-12-25

    I have similar Problems. redirect_to_url build location : baseurl()+"index.php" which produces www.example.deindex.php. BASEURL is empty... perhaps its the same problem. BASEURL should contain a / at minimum ???

     
  • Gabor
    Gabor
    2012-12-25

    Oh soory: i dont use symlinks and scriptfiles are in the ROOTDIR of the Domain. r241.

     
  • nabber00
    nabber00
    2013-10-09

    Yes BASEURL should be set to something. The latest svn version should fix this.

     
  • nabber00
    nabber00
    2013-10-09

    • status: pending --> closed