[Mediawiki-l] Redirects and such

P. Kerim friedman kerim.mail at oxus.net
Wed Jul 28 00:52:23 UTC 2004


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 at jabber.linux.it
> MSN   : alissonsellaro at hotmail.com
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at Wikimedia.org
> http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
>




More information about the MediaWiki-l mailing list