A few things you can check/try:

1) Make sure your Apache rewrite engine and htaccess use is on and working
(ex: change the rewrite rule to something more obvious/different).
2) The rewrite rules you have are slightly different than the ones
specified in the tutorial:

      RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/w/index.php [L]
      RewriteRule ^/*$ %{DOCUMENT_ROOT}/w/index.php [L]

The RewriteCond's are optional and shouldn't make a difference but you can
try removing them. Is the RewriteBase line there correct for your setup?
3) If you have access to the Apache root configuration you can try using
Alias instead like I do (I don't believe you can use Alias in a .htaccess
file):
        Alias /wiki /home/absolute/path/www/w/index.php
        Alias /index.php /home/absolute/path/www/w/index.php   #Optional
Obviously substitute your wiki's absolute path on the right side of the
alias.



On 10 August 2013 20:25, Sarah Bradberry <[email protected]> wrote:

> Thanks for the reply. It seems my original post may have only gone to the
> web archives and not out to the list.
>
> I have tried every version of the redirect code I can find. Short URLS are
> working but redirecting from the long version goes to index.php instead of
> the article name
>
> I have recently moved my wiki from
> http://www.knitting-and.com/wiki to http://www.knitting-and.com/w and want
> the entries to still show at http://www.knitting-and.com/wiki
>
> I've set up the redirects following the info at
> http://www.mediawiki.org/wiki/Manual:Short_URL but I've done something
> wrong
> and I can't figure out what
>
> Full URLs such as
> http://www.knitting-and.com/wiki/index.php?title=Lacy_Gloves_(Vintage)
> are redirecting to
> http://www.knitting-and.com/wiki/index.php<
> http://www.knitting-and.com/index.php>
> instead of
> http://www.knitting-and.com/wiki/Lacy_Gloves_(Vintage)
>
> I have the following in the .htaccess file in my root directory:
>
> RewriteEngine On
> RewriteBase /~myusername
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
> RewriteRule ^/?wiki(/.*)?$ /w/index.php [L]
>
> and this in my LocalSettings.php in the "w" directory
>
> $wgScriptPath = "/w";
> $wgScriptExtension = ".php";
> $wgArticlePath = "/wiki/$1";
> $wgUsePathInfo = true;
>
> Any help would be greatly appreciated!
>
> Sarah
>
>
> On 11 August 2013 10:15, Dave Humphrey <[email protected]> wrote:
>
> > Have you gone through the guides at
> > http://www.mediawiki.org/wiki/Manual:Short_URL, or more specifically
> > http://www.mediawiki.org/wiki/Manual:Short_URL/Apache? If you did what
> > doesn't work or at what point do you have issues?
> >
> _______________________________________________
> MediaWiki-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
>



-- 
Dave Humphrey -- [email protected]
Founder/Server Admin of the Unofficial Elder Scrolls Pages -- www.uesp.net
_______________________________________________
MediaWiki-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-l

Reply via email to