Plus sign in MediaWiki URLs

Using a single web hosting account to host multiple sites

Postby Sasoriza » Sat Apr 19, 2008 6:13 pm

titaniumdecoy wrote:Sigh... that doesn't work. Nor does this code I tried:

Code: Select all
if(strpos(getenv('REQUEST_URI'), 'index.php') === false)
{
   $page_title = str_replace('+', '%2B', substr(getenv('REQUEST_URI'), 1));

   $_GET['title'] = $page_title;
   
   $_SERVER['REQUEST_URI'] = "/index.php?title=$page_title";
}

If I find anything, I'll get back to you. Thanks for your help.


Did anyone ever get this to work? Two years later and some of us are still having the same problem. You'd think the folks at Mediawiki would have compiled a walkthrough solution by now. If they did, I'm unaware of it.... and unaware how to escape + in the URLs. It's driving me insane. I have 1.12 and it still won't work.
Sasoriza
 
Posts: 1
Joined: Sat Apr 19, 2008 6:05 pm

Postby richardk » Sun Apr 20, 2008 1:04 pm

What is the value of the REQUEST_URI variable in your PHP? Are you getting redirected by MediaWiki?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Previous

Return to Domain Handling

Who is online

Users browsing this forum: Majestic-12 [Bot] and 17 guests

cron