Menu

index.php configuration for // problem

Help
Anonymous
2002-12-27
2012-10-11
  • Anonymous

    Anonymous - 2002-12-27

    I've used phpwiki for awhile at my site.  I love this because it's taken the pressure off me to make little correction or add/delete links.  I had been running it off my home DSL, but I recently got around to having someone host the site.  Ever since, the links don't work right.  I have an .htaccess file that redirects www.server.com to www.server.com/phpwiki.  It looks like this:

         DirectoryIndex index.php index.html index.php

         RewriteEngine on
         RewriteRule index.html$ http://www.tharin.com/phpwiki [R]
         RewriteRule ^([A-Z])(.+)$ http://www.tharin.com/index.php$1$2 [R]

    Not sure how that will display, but it is formatted correctly in the actual file.

    I've tried many different options in the index.php file, but I   can't fix my problem.  The main page has a link to the HowToUse page.  But the link comes up as http://www.server.com//HowToUse  The rest of the pages are the same, with the //.

    Anyone have an idea about how to fix it?  Thanks.

     
    • Josh Becigneul

      Josh Becigneul - 2003-01-12

      I believe that if you set these two options to the URL that you want people to see (or maybe of the server's name) it should fix the // problem.

         // URL of index.php e.g. http://yoursite.com/phpwiki/index.php
         // you can leave this empty - it will be calculated automatically
         $ScriptUrl = "";
         // URL of admin.php e.g. http://yoursite.com/phpwiki/admin.php
         // you can leave this empty - it will be calculated automatically
         // if you fill in $ScriptUrl you *MUST* fill in $AdminUrl as well!
         $AdminUrl = "";

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.