Hello Wilinckx,
Here are my responses to your questions:
Q.the kind of URL you'd like to have - I would like to have url look like how it is in en.wikipedia.org ie en.wikipedia.org/Unix etc etc..
Q. the URL's MediaWiki links to when he links to an Article Also please note, I am unable to login or do anything at all once I try to make non ugly urls. - Currently the links look like this http://wiki/wiki/index.php?title=FEC if the changes do work I would anticipate they look like http://wiki/wiki/FEC
Q. the URL MediaWiki says in it's HTML output the MonoBook CSS files should be found - Here's the entry in the html output that you are asking for. <style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "/wiki/skins/monobook/main.css"; /*]]>*/</style>
Q. the name of the directory MediaWiki is installed in - Mediawiki is installed in /opt/local/htdocs/wiki
Q. the part of LocalSettings.php containing $wgScriptPath, $wgStylePath , etc - Settings from Localsettings.php are as follows. $wgScriptPath = "/wiki"; $wgStylePath = "$wgScriptPath/skins"; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php";
Q. and the mod-rewrite rules you've setup in httpd.conf ? - The .htaccess in /opt/local/htdocs/wiki/ contains the following entries. ----------------------------- # close the php security hole... # not actually needed but probably a good idea anyway php_flag register_globals off
# first, enable the processing - Unless your ISP has it enabled # already. That might cause weird errors. RewriteEngine on
# uncomment this rule if you want Apache to redirect from www.mysite.com/ to # www.mysite.com/wiki/Main_Page RewriteRule ^/$ /wiki/Main_Page [R]
# do the rewrite RewriteRule ^wiki/?(.*)$ /w/index.php?title=$1 [L,QSA] ----------------------------- The httpd.conf has the following entries in the very end.
## Wiki Settings Alias /wiki /opt/local/htdocs/wiki/index.php Alias /index.php /opt/local/htdocs/wiki/index.php RewriteEngine on RewriteLog "logs/rewrite.log" RewriteLogLevel 5
"Govardhanen Gopal" govardha@gmail.com escribió en el mensaje news:19b4af2f0604050931p6521688aldf50b4ef728263fa@mail.gmail.com...
Hello Wilinckx,
Here are my responses to your questions:
Q.the kind of URL you'd like to have
- I would like to have url look like how it is in en.wikipedia.org ie
en.wikipedia.org/Unix etc etc..
en.wikipedia uses en.wikipedia.org/wiki/Unix
Q. the URL's MediaWiki links to when he links to an Article Also please note, I am unable to login or do anything at all once I try to make non ugly urls.
- Currently the links look like this
http://wiki/wiki/index.php?title=FEC if the changes do work I would anticipate they look like http://wiki/wiki/FEC
Maybe the error is here. if you see wikimedia's project they use http://theprojectname.org/w/index.php?title=Foo and the short system is http://theprojectname.org/wiki/Foo If you are trying to redirect /wiki/* to /wiki/index.php?title=* well, you may be trying to redirect to another redirect... Even the existence of that folder may be confusing your rules (anyway, that folder would be shadowed).
I suggest you to trying to make your urls as http://theprojectname.org/wiki2/Foo to see if some of that problem resolves.
wikitech-l@lists.wikimedia.org