[Mediawiki-l] Redirect

Philip Beach beachboy4231 at gmail.com
Tue Jun 17 15:04:20 UTC 2008


Thanks for the tips!

I already have an alias set up to change /wiki to /wiki/index.php... I am
using the Wikipedia style pretty URL's. In other words, this should do the
trick!

On Tue, Jun 17, 2008 at 9:34 AM, Platonides <Platonides at gmail.com> wrote:

> Philip Beach wrote:
> > RewriteRule ^([A-Za-z]+)$ /wiki/$1/ [R]
> >
> > However, that only works with one word pages that are alphabetical (no
> > numbers or any other symbols). Can anyone tell me the best way to make
> this
> > do what I want?
>
> Change [A-Za-z] by [^/\.] (it applies for anything without a / or .). Or
> you could redirect everythign not beginning with /wiki/
> But take into account that you want to access index.php!
>
> > Is mod rewrite the best method to use?
> Yes
>
>
> _______________________________________________
> MediaWiki-l mailing list
> MediaWiki-l at lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>


More information about the MediaWiki-l mailing list