Manual talk:Short URL/wiki/Page title -- DreamHost Shared Hosting
[edit] Problems with first method
I'm trying to do the "MediaWiki installed in sub-directory (1 level down from root) "www.yourdomain.com/w/"" method, however, I get the following error:
- Error, Setup.php must be included from the file scope, after DefaultSettings.php
Actually, upon a reload I got a 500 internal server error instead. I tried to go to www.domain.com/wiki/ which tries to take me to www.domain.com/wiki/Main_Page which gives me the error.
Some info:
- My wiki is at www.domain.com/wiki/
- I put the .htacess file in the www.domain.com/ directory
- My local settings code in file looks like this:
$wgUsePathInfo = true; $wgScriptPath = "/wiki"; $wgScript = "$wgScriptPath/index.php"; $wgArticlePath = "/wiki/$1";
any ideas? --Bluesoju 09:12, 28 January 2010 (UTC)
- Solved , it was in the .htaccess file, i forgot to update the path on the last line to /wiki/ instead of /w/
[edit] Stats page
After doing the setup, I'm no longer able to access my stats page. Domain.com/stats/ . Anyone else get this problem?
[edit] Question About the Third Method
My wiki is located in the root folder, and I'm wanting the short URL to redirect to /wiki/Article_Name. Using the third method, though, it goes to /Article_Name.
However, if I use this:
$wgArticlePath = "/wiki/$1";
- If you want: [ example.com/wiki/Main_Page ]
it makes the Wiki freak out and it goes into a loop where it tries to create several sub directories. It looks like it goes site.com/wiki/Wiki/Wiki/Wiki/Wiki… etc. It's up and functioning on my Wiki now in the root directory, but it would be cool to get it routed to the sub directory correctly. Any thoughts? -- 97.97.177.148 19:42, 26 April 2010 (UTC)