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:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 = "";
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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 = "";