Hi, after the installation of the script I need to change, sometimes, some phraee, for example "Community portal". I've tried to modify both in the language file and in the database the phrase but when I try to reload the page notthing happens. Has someone any idea?
Giovanni
Same problem here. I installed the 1.3 beta and would like to change/delete some of the links under the navigation menu. In specific, I would like to get rid of "community portal" and "recent events", and change them with something else.
I have been all over the code and for the life of me I can't find where the blasted template is being stored. What seems to be the ticket is /templates/xhtml_slim.pt but editing that file does not change the menus.
If anybody cares to throw this old dog a bone it would be apreciated :)
- Abdon
Quoting Giovanni gputignano@tiscali.it:
Hi, after the installation of the script I need to change, sometimes, some phraee, for example "Community portal". I've tried to modify both in the language file and in the database the phrase but when I try to reload the page notthing happens. Has someone any idea?
Giovanni
----- Original Message ----- From: Giovanni gputignano@tiscali.it Date: Tue, 27 Jul 2004 20:10:03 +0200 Subject: [Mediawiki-l] Question To: mediawiki-l@wikimedia.org
Hi, after the installation of the script I need to change, sometimes, some phraee, for example "Community portal". I've tried to modify both in the language file and in the database the phrase but when I try to reload the page notthing happens. Has someone any idea?
Giovanni
Try editing the pages [[MediaWiki:Portal]] and [[MediaWiki:Portal-url]]. Entering - in MediaWiki:Portal removes the link completely.
Eureka!!! It's what I need, thanks very much.
Giovanni
----- Original Message ----- From: Giovanni gputignano@tiscali.it Date: Tue, 27 Jul 2004 20:10:03 +0200 Subject: [Mediawiki-l] Question To: mediawiki-l@wikimedia.org
Hi, after the installation of the script I need to change, sometimes, some phraee, for example "Community portal". I've tried to modify both in the language file and in the database the phrase but when I try to reload the page notthing happens. Has someone any idea?
Giovanni
Try editing the pages [[MediaWiki:Portal]] and [[MediaWiki:Portal-url]]. Entering - in MediaWiki:Portal removes the link completely.
-- [[en:User:Dori]] _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Unfortunatelly unless I'm missing something, this does not seems to exists on version 1.3 beta...
Or am I missing something? :}
- Abdon
Quoting Giovanni gputignano@tiscali.it:
Eureka!!! It's what I need, thanks very much.
Giovanni
----- Original Message ----- From: Giovanni gputignano@tiscali.it Date: Tue, 27 Jul 2004 20:10:03 +0200 Subject: [Mediawiki-l] Question To: mediawiki-l@wikimedia.org
Hi, after the installation of the script I need to change, sometimes, some phraee, for example "Community portal". I've tried to modify both in the language file and in the database the phrase but when I try to reload the page notthing happens. Has someone any idea?
Giovanni
Try editing the pages [[MediaWiki:Portal]] and [[MediaWiki:Portal-url]]. Entering - in MediaWiki:Portal removes the link completely.
-- [[en:User:Dori]] _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
- Abdon http://www.sillypages.com/
I've tried on the beta 5 version.
Giovanni
----- Original Message ----- From: "Abdon Gonzalez" abdon@sillypages.com To: "MediaWiki announcements and site admin list" mediawiki-l@Wikimedia.org Sent: Tuesday, July 27, 2004 9:19 PM Subject: Re: [Mediawiki-l] Question
Unfortunatelly unless I'm missing something, this does not seems to exists
on
version 1.3 beta...
Or am I missing something? :}
- Abdon
Quoting Giovanni gputignano@tiscali.it:
Eureka!!! It's what I need, thanks very much.
Giovanni
----- Original Message ----- From: Giovanni gputignano@tiscali.it Date: Tue, 27 Jul 2004 20:10:03 +0200 Subject: [Mediawiki-l] Question To: mediawiki-l@wikimedia.org
Hi, after the installation of the script I need to change, sometimes, some phraee, for example "Community portal". I've tried to modify both in the language file and in the database the phrase but when I try to reload the page notthing happens. Has someone any idea?
Giovanni
Try editing the pages [[MediaWiki:Portal]] and [[MediaWiki:Portal-url]]. Entering - in MediaWiki:Portal removes the link completely.
-- [[en:User:Dori]] _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
- Abdon
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I was able to edit the URLs listed in my "navigation" box by editing the file:
Templates/xhtml_slim.pt
I removed the portal links and added links to the rest of my site.
It seems to me that the navigation pane itself should be a wiki page which the Sysop can edit, it would make life a lot easier!
kerim
On Jul 27, 2004, at 3:20 PM, Giovanni wrote:
I've tried on the beta 5 version.
Giovanni
----- Original Message ----- From: "Abdon Gonzalez" abdon@sillypages.com To: "MediaWiki announcements and site admin list" mediawiki-l@Wikimedia.org Sent: Tuesday, July 27, 2004 9:19 PM Subject: Re: [Mediawiki-l] Question
Unfortunatelly unless I'm missing something, this does not seems to exists
on
version 1.3 beta...
Or am I missing something? :}
- Abdon
Quoting Giovanni gputignano@tiscali.it:
Eureka!!! It's what I need, thanks very much.
Giovanni
----- Original Message ----- From: Giovanni gputignano@tiscali.it Date: Tue, 27 Jul 2004 20:10:03 +0200 Subject: [Mediawiki-l] Question To: mediawiki-l@wikimedia.org
Hi, after the installation of the script I need to change, sometimes, some phraee, for example "Community portal". I've tried to modify both in the language file and in the database the phrase but when I try to reload the page notthing happens. Has someone any idea?
Giovanni
Try editing the pages [[MediaWiki:Portal]] and [[MediaWiki:Portal-url]]. Entering - in MediaWiki:Portal removes the link completely.
-- [[en:User:Dori]] _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
- Abdon
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I have been able to get my wiki up and configured quite easily, although modifying the navigation box took some figuring out. However, the one last thing I want to do is to figure out how to modify the URLs using Apache rewrite rules. I don't have access to httpd.conf on my hosted site, just .htaccess files. But when I tried the hint in http://meta.wikimedia.org/wiki/Rewrite_rules nothing happened. Moreover, I want to also change the base URL, as I use URL forwarding on my site. Any help would be appreciated! Please see below for more details.
kerim
My Wiki URL:
http://wiki.oxusnet.net/index.php/Main_Page
How I would like it to look like:
http://wiki.oxus.net/Main_Page
As you see, my actual domain is "oxus.net" not "oxusnet.net" which is the domain of the hosting computer. Also, I would like to remove the offending "index.php/" from the URL, I see it is not there on the main site.
On most software I've installed myself, I've been able to set up a "base URL" using the config file, but I don't see that here in MediaWiki. As far as removing the "index.php/" is concerned, the instructions on the "rewrite_rules" page don't seem to work for me. My host's tech support (hostmatters.com) told me that the rules specify the exact same URL structure I already have, so there is no difference!
Thanks for your help!!!
P. Kerim friedman wrote:
I have been able to get my wiki up and configured quite easily, although modifying the navigation box took some figuring out. However, the one last thing I want to do is to figure out how to modify the URLs using Apache rewrite rules. I don't have access to httpd.conf on my hosted site, just .htaccess files. But when I tried the hint in http://meta.wikimedia.org/wiki/Rewrite_rules nothing happened. Moreover, I want to also change the base URL, as I use URL forwarding on my site. Any help would be appreciated! Please see below for more details.
If you mix information from sections http://meta.wikimedia.org/wiki/Talk:Rewrite_rules#Putting_All_Toghether and http://meta.wikimedia.org/wiki/Talk:Rewrite_rules#How_to_change_base_URL.3F you will make it.
Please let us know if you get this working. -- Alisson Sellaro http://www.music-wiki.org
Thanks. Unfortunately, that is all way over my head!!! For one thing, it looks as if your solution is for a setup where the wiki is in a sub folder of the main domain rather than the top level of the domain. And the comment below, about how changing the base URL hint didn't work was actually by me - that's why I joined this list, because the "talk" page wasn't giving me the answers I needed.
I really hope I can get this working, as it is the only thing holding up making my site go live! Thanks again to anyone who can clear up the confusion!
Cheers,
On Jul 27, 2004, at 3:49 PM, Alisson Sellaro wrote:
P. Kerim friedman wrote:
I have been able to get my wiki up and configured quite easily, although modifying the navigation box took some figuring out. However, the one last thing I want to do is to figure out how to modify the URLs using Apache rewrite rules. I don't have access to httpd.conf on my hosted site, just .htaccess files. But when I tried the hint in http://meta.wikimedia.org/wiki/Rewrite_rules nothing happened. Moreover, I want to also change the base URL, as I use URL forwarding on my site. Any help would be appreciated! Please see below for more details.
If you mix information from sections http://meta.wikimedia.org/wiki/Talk: Rewrite_rules#Putting_All_Toghether and http://meta.wikimedia.org/wiki/Talk: Rewrite_rules#How_to_change_base_URL.3F you will make it.
Please let us know if you get this working.
Alisson Sellaro http://www.music-wiki.org _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
P. Kerim friedman wrote:
I really hope I can get this working, as it is the only thing holding up making my site go live! Thanks again to anyone who can clear up the confusion!
That setup was used when MusicWiki was in a different server (under /wiki directory). My actuall configuration follows (Wiki at http://www.music-wiki.org for .htaccess or httpd.conf):
RewriteEngine on RewriteCond %{QUERY_STRING} ^$ RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*) /index.php?tile=Main_Page [L]
# Don't rewrite requests for files in MediaWiki subdirectories, # MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt RewriteCond %{REQUEST_URI} !^/stylesheets/ RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteCond %{REQUEST_URI} !^/robots.txt
# Make sure there is no query string (Unless user is making a search) RewriteCond %{QUERY_STRING} ^$ [OR] RewriteCond %{REQUEST_URI} ^/Special:Search
# Rewrite http://wiki.domain.tld/article properly, this is the main rule RewriteRule ^/(.*) /index.php/$1 [L]
I think the following configuration will fit your needs (changing http://something.org to http://some.org and doing URL "beautification"):
RewriteEngine on # Change http://something.org to http://some.org RewriteCond %{REQIEST_URI} ^something.org RewriteRule ^(.*) some.org$1
# Main_Page not specified RewriteCond %{QUERY_STRING} ^$ RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*) /index.php?tile=Main_Page [L]
# Don't rewrite requests for files in MediaWiki subdirectories, # MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt RewriteCond %{REQUEST_URI} !^/stylesheets/ RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteCond %{REQUEST_URI} !^/robots.txt
# Make sure there is no query string (Unless user is making a search) RewriteCond %{QUERY_STRING} ^$ [OR] RewriteCond %{REQUEST_URI} ^/Special:Search
# Rewrite http://wiki.domain.tld/article properly, this is the main rule RewriteRule ^/(.*) /index.php/$1 [L]
Hope it helps.
Alisson,
First off, MusicWiki looks great!
Thanks for the combined .htaccess file! Unfortunately, it didn't do a thing. I wonder if there isn't some kind of a permissions or file format problem preventing the computer from reading it properly, or something of the sort... I'm asking my host's tech support to see what's up. I'll let you know what happens.
Cheers,
kerim
On Jul 27, 2004, at 4:15 PM, Alisson Sellaro wrote:
P. Kerim friedman wrote:
I really hope I can get this working, as it is the only thing holding up making my site go live! Thanks again to anyone who can clear up the confusion!
That setup was used when MusicWiki was in a different server (under /wiki directory). My actuall configuration follows (Wiki at http://www.music-wiki.org for .htaccess or httpd.conf):
RewriteEngine on RewriteCond %{QUERY_STRING} ^$ RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*) /index.php?tile=Main_Page [L]
# Don't rewrite requests for files in MediaWiki subdirectories, # MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt RewriteCond %{REQUEST_URI} !^/stylesheets/ RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteCond %{REQUEST_URI} !^/robots.txt
# Make sure there is no query string (Unless user is making a search) RewriteCond %{QUERY_STRING} ^$ [OR] RewriteCond %{REQUEST_URI} ^/Special:Search
# Rewrite http://wiki.domain.tld/article properly, this is the main rule RewriteRule ^/(.*) /index.php/$1 [L]
I think the following configuration will fit your needs (changing http://something.org to http://some.org and doing URL "beautification"):
RewriteEngine on # Change http://something.org to http://some.org RewriteCond %{REQIEST_URI} ^something.org RewriteRule ^(.*) some.org$1
# Main_Page not specified RewriteCond %{QUERY_STRING} ^$ RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*) /index.php?tile=Main_Page [L]
# Don't rewrite requests for files in MediaWiki subdirectories, # MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt RewriteCond %{REQUEST_URI} !^/stylesheets/ RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteCond %{REQUEST_URI} !^/robots.txt
# Make sure there is no query string (Unless user is making a search) RewriteCond %{QUERY_STRING} ^$ [OR] RewriteCond %{REQUEST_URI} ^/Special:Search
# Rewrite http://wiki.domain.tld/article properly, this is the main rule RewriteRule ^/(.*) /index.php/$1 [L]
Hope it helps.
-- Alisson Sellaro
MusicWiki :: http://www.music-wiki.org Plug It In! :: http://www.plugitin.com.br
AIM : sellaropelucio ICQ : 150658836 Jabber: sellaro@jabber.linux.it MSN : alissonsellaro@hotmail.com
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
One thing that is bugging me about not getting the rewrite rules working is that the instructions for the LocalSettings.php file don't seem to match what mine looks like (in Beta 5). Do I need to change them? Below is what they look like now.
Thanks,
kerim
$wgSitename = "KerimWiki"; $wgScriptPath = ""; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php";
## If using PHP as a CGI module, use the ugly URLs $wgArticlePath = "$wgScript/$1"; # $wgArticlePath = "$wgScript?title=$1";
$wgStylePath = "$wgScriptPath/stylesheets"; $wgStyleDirectory = "$IP/stylesheets"; $wgLogo = "$wgStylePath/images/wiki.png";
$wgUploadPath = "$wgScriptPath/images"; $wgUploadDirectory = "$IP/images";
On Jul 27, 2004, at 4:15 PM, Alisson Sellaro wrote:
P. Kerim friedman wrote:
I really hope I can get this working, as it is the only thing holding up making my site go live! Thanks again to anyone who can clear up the confusion!
That setup was used when MusicWiki was in a different server (under /wiki directory). My actuall configuration follows (Wiki at http://www.music-wiki.org for .htaccess or httpd.conf):
RewriteEngine on RewriteCond %{QUERY_STRING} ^$ RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*) /index.php?tile=Main_Page [L]
# Don't rewrite requests for files in MediaWiki subdirectories, # MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt RewriteCond %{REQUEST_URI} !^/stylesheets/ RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteCond %{REQUEST_URI} !^/robots.txt
# Make sure there is no query string (Unless user is making a search) RewriteCond %{QUERY_STRING} ^$ [OR] RewriteCond %{REQUEST_URI} ^/Special:Search
# Rewrite http://wiki.domain.tld/article properly, this is the main rule RewriteRule ^/(.*) /index.php/$1 [L]
I think the following configuration will fit your needs (changing http://something.org to http://some.org and doing URL "beautification"):
RewriteEngine on # Change http://something.org to http://some.org RewriteCond %{REQIEST_URI} ^something.org RewriteRule ^(.*) some.org$1
# Main_Page not specified RewriteCond %{QUERY_STRING} ^$ RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*) /index.php?tile=Main_Page [L]
# Don't rewrite requests for files in MediaWiki subdirectories, # MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt RewriteCond %{REQUEST_URI} !^/stylesheets/ RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteCond %{REQUEST_URI} !^/robots.txt
# Make sure there is no query string (Unless user is making a search) RewriteCond %{QUERY_STRING} ^$ [OR] RewriteCond %{REQUEST_URI} ^/Special:Search
# Rewrite http://wiki.domain.tld/article properly, this is the main rule RewriteRule ^/(.*) /index.php/$1 [L]
Hope it helps.
-- Alisson Sellaro
MusicWiki :: http://www.music-wiki.org Plug It In! :: http://www.plugitin.com.br
AIM : sellaropelucio ICQ : 150658836 Jabber: sellaro@jabber.linux.it MSN : alissonsellaro@hotmail.com
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
I looked at
http://meta.wikimedia.org/wiki/Talk:Rewrite_rules#Putting_All_Toghether
Again and I changed the following lines accordingly:
$wgScript = "$wgScriptPath/"; $wgRedirectScript = "redirect.php"; $wgArticlePath = "$wgScript$1";
This changed the links as they appear in the wiki, but the new links don't work!
"The requested URL /Main_Page was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. "
It seems that .htaccess still has no effect whatsoever. I tried the same thing on my local system (running on my laptop on localhost) and the same thing - no changes!!! I made sure that http.conf allowed overrides, so this isn't the problem.
Why isn't this working?
One other thing I found is that the original mediawiki page:
http://meta.wikimedia.org/wiki/Rewrite_rules
Said I should have this at the start of my file:
# Allow wiki articles to start with a period <Files .*> Order Deny,Allow Allow From All </Files>
It wasn't in Alisson's original e-mail, so I hadn't added it. However, it *still* doesn't seem to work. Either on localhost or on my server...
kerim
On Jul 29, 2004, at 9:20 AM, P. Kerim friedman wrote:
One thing that is bugging me about not getting the rewrite rules working is that the instructions for the LocalSettings.php file don't seem to match what mine looks like (in Beta 5). Do I need to change them? Below is what they look like now.
Thanks,
kerim
$wgSitename = "KerimWiki"; $wgScriptPath = ""; $wgScript = "$wgScriptPath/index.php"; $wgRedirectScript = "$wgScriptPath/redirect.php";
## If using PHP as a CGI module, use the ugly URLs $wgArticlePath = "$wgScript/$1"; # $wgArticlePath = "$wgScript?title=$1";
$wgStylePath = "$wgScriptPath/stylesheets"; $wgStyleDirectory = "$IP/stylesheets"; $wgLogo = "$wgStylePath/images/wiki.png";
$wgUploadPath = "$wgScriptPath/images"; $wgUploadDirectory = "$IP/images";
On Jul 27, 2004, at 4:15 PM, Alisson Sellaro wrote:
P. Kerim friedman wrote:
I really hope I can get this working, as it is the only thing holding up making my site go live! Thanks again to anyone who can clear up the confusion!
That setup was used when MusicWiki was in a different server (under /wiki directory). My actuall configuration follows (Wiki at http://www.music-wiki.org for .htaccess or httpd.conf):
RewriteEngine on RewriteCond %{QUERY_STRING} ^$ RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*) /index.php?tile=Main_Page [L]
# Don't rewrite requests for files in MediaWiki subdirectories, # MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt RewriteCond %{REQUEST_URI} !^/stylesheets/ RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteCond %{REQUEST_URI} !^/robots.txt
# Make sure there is no query string (Unless user is making a search) RewriteCond %{QUERY_STRING} ^$ [OR] RewriteCond %{REQUEST_URI} ^/Special:Search
# Rewrite http://wiki.domain.tld/article properly, this is the main rule RewriteRule ^/(.*) /index.php/$1 [L]
I think the following configuration will fit your needs (changing http://something.org to http://some.org and doing URL "beautification"):
RewriteEngine on # Change http://something.org to http://some.org RewriteCond %{REQIEST_URI} ^something.org RewriteRule ^(.*) some.org$1
# Main_Page not specified RewriteCond %{QUERY_STRING} ^$ RewriteCond %{REQUEST_URI} ^/$ RewriteRule ^(.*) /index.php?tile=Main_Page [L]
# Don't rewrite requests for files in MediaWiki subdirectories, # MediaWiki PHP files, HTTP error documents, favicon.ico, or robots.txt RewriteCond %{REQUEST_URI} !^/stylesheets/ RewriteCond %{REQUEST_URI} !^/(redirect|texvc|index).php RewriteCond %{REQUEST_URI} !^/error/(40(1|3|4)|500).html RewriteCond %{REQUEST_URI} !^/favicon.ico RewriteCond %{REQUEST_URI} !^/robots.txt
# Make sure there is no query string (Unless user is making a search) RewriteCond %{QUERY_STRING} ^$ [OR] RewriteCond %{REQUEST_URI} ^/Special:Search
# Rewrite http://wiki.domain.tld/article properly, this is the main rule RewriteRule ^/(.*) /index.php/$1 [L]
Hope it helps.
-- Alisson Sellaro
MusicWiki :: http://www.music-wiki.org Plug It In! :: http://www.plugitin.com.br
AIM : sellaropelucio ICQ : 150658836 Jabber: sellaro@jabber.linux.it MSN : alissonsellaro@hotmail.com
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Sorry to have bothered everyone. I solved the problem. It turns out to have been some kind of a weird typo in Alisson's e-mail. I copied the matching text from the web page and it worked fine, once I made it look like Alisson's e-mail again!
Thanks to everyone, especially Alisson!
I'm now working on making the domain name redirection part work, as that's still funky, but that is less important, as URLs with either domain name will work the right way now!
Cheers,
kerim
I need to followup as things didn't work as expected. In the process I figured out two things:
(1) The reason the e-mailed text didn't work is it read as such:
RewriteRule ^/(.*) /index.php/$1 [L]
The actual rule used should be this:
RewriteRule ^(.*) /index.php/$1 [L]
Without the slash.
(2) The settings from LocalAccess PHP need to be as listed here:
http://meta.wikimedia.org/wiki/Rewrite_rules
Not as listed in the Talk page. Mine read as follows now:
$wgSitename = "KerimWiki"; $wgServer = "http://wiki.oxus.net"; $wgScriptPath = ""; $wgScript = "$wgScriptPath"; $wgRedirectScript = "/redirect.php";
## If using PHP as a CGI module, use the ugly URLs $wgArticlePath = "/$1"; # $wgArticlePath = "$wgScript?title=$1";
$wgStylePath = "/stylesheets"; $wgStyleDirectory = "$IP/stylesheets"; $wgLogo = "$wgStylePath/images/wiki.png";
$wgUploadPath = "/images"; $wgUploadDirectory = "$IP/images";
Things seem to be working OK now... Although I still don't have the domain redirection set up.
Cheers,
kerim
Everything seems to be working fine now. However, I still have the issue of the base URL which I would like to change. Here is the problem.
The hints I've been getting over at MediaWiki and here on the list seem to not address the real problem. You see, the url:
http://wiki.oxus.net/Main_Page
works! This is already done through my URL forwarding from EasyDNS.org. So I don't think I need rewrite rules like this one:
RewriteCond %{REQIEST_URI} ^wiki.oxusnet.net RewriteRule ^(.*) wiki.oxus.net$1
Right? What I want is for all the wiki URLs *within* MediaWiki to use
instead of the server actually hosting the site:
But there seems to be no way to force MediaWiki to use a domain of my choosing, so what happens is that the first time anyone hits a link on the site, it goes to oxusnet.net. I don't want anyone to know that this is where it is hosted.
I see that older versions of LocalSettings.php had a line:
$wgServer = "http://wiki.oxus.net";
But adding this to my beta5 installation didn't do anything. Is there any way to get MediaWiki to us this as the base URL?
Thanks for your help!
kerim
P. Kerim friedman wrote:
I see that older versions of LocalSettings.php had a line:
$wgServer = "http://wiki.oxus.net";
But adding this to my beta5 installation didn't do anything. Is there any way to get MediaWiki to us this as the base URL?
That should work fine. Can you confirm your browser isn't caching the old response? Note that most links the wiki outputs do not include a host; it's used only for HTTP redirects and a few other things where we need to output a full URL.
-- brion vibber (brion @ pobox.com)
Brion,
I see your point (about not having the full URL). Here is the problem. When I load the page the very first time, it seems as if MediaWiki actually does some kind of a redirect. So I load:
http://wiki.oxus.net/Main_Page
and I am redirected to:
http://wiki.oxusnet.net/Main_Page
Once there, all the links follow as well. Do you know what is causing that initial redirect? Is it in the .htaccess, LocalSettings.php, or somewhere else?
Cheers,
kerim
On Jul 30, 2004, at 7:48 PM, Brion Vibber wrote:
P. Kerim friedman wrote:
I see that older versions of LocalSettings.php had a line: $wgServer = "http://wiki.oxus.net"; But adding this to my beta5 installation didn't do anything. Is there any way to get MediaWiki to us this as the base URL?
That should work fine. Can you confirm your browser isn't caching the old response? Note that most links the wiki outputs do not include a host; it's used only for HTTP redirects and a few other things where we need to output a full URL.
-- brion vibber (brion @ pobox.com) _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
On Fri, 30 Jul 2004 21:20:45 -0400, P. Kerim friedman kerim.mail@oxus.net wrote:
I see your point (about not having the full URL). Here is the problem. When I load the page the very first time, it seems as if MediaWiki actually does some kind of a redirect. So I load:
http://wiki.oxus.net/Main_Page
and I am redirected to:
http://wiki.oxusnet.net/Main_Page
Once there, all the links follow as well. Do you know what is causing that initial redirect? Is it in the .htaccess, LocalSettings.php, or somewhere else?
Sounds like an Apache redirect rule in... darn, someone would know better than I where to find it. httpd.conf, or some file included by that file, though.
I do have Apache redirects - those in the .htaccess which rewrite the urls from:
domain.com/index.php/page_name
to
domain.com/page_name
As discussed earlier in this thread and on the page:
http://meta.wikimedia.org/wiki/Talk:Rewrite_rules
But if these are the culprit, how to edit them so as not to change the domain? The hints I've been given so far don't seem to help, so I assumed it might be somewhere else.
My blog: http://keywords.oxus.net is hosted the same way, and there is no such problem. MovableType correctly sends all the links to the domain, rather than the host, and there are no redirection issues, so I don't think it is something happening in httpd.conf, but must either be in .htaccess or in the MediaWiki software itself.
Cheers,
kerim On Jul 30, 2004, at 11:01 PM, Fennec Foxen wrote:
Sounds like an Apache redirect rule in... darn, someone would know better than I where to find it. httpd.conf, or some file included by that file, though. _______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
Unfortunatelly unless I'm missing something, this does not seems to exists on version 1.3 beta...
Or am I missing something? :}
- Abdon
Have you got $wgUseDatabaseMessages switched off (i.e. you don't have any pages in the MediaWiki: namespace)? Because in that case, the messages should come directly from Language*.php (where * is the appropriate language code); somewhere will be value assignments like 'portal' => "Community Portal"
I think.
mediawiki-l@lists.wikimedia.org