[wikka-community] Redirect

Dario Taraborelli dartar
Tue Feb 5 22:11:46 GMT 2008


I don't think RedirectPermanent accepts full URI as first parameter,  
you shoud use relative URL paths.
Try this:

> RedirectPermanent /index.php?title=Main_Page http://docs.mypclinuxos.com/


Dario


On 5 Feb 2008, at 21:59, Brian Koontz wrote:

>> Unfortunately, neither one of these tricks are working. :(  I was  
>> hoping
>> for a way that the wiki could redirect.  FYI, I use site5 for my
>> hosting.  Here's my .htaccess:
>>
>> AddHandler application/x-httpd-php5 .php
>> #RewriteEngine On
>> #RewriteCond %{REQUEST_FILENAME} !-f
>> #RewriteCond %{REQUEST_FILENAME} !-d
>> #RewriteRule ^(.*)$ /index.php?title=$1 [L,QSA]
>> #Options +FollowSymLinks
>> #RewriteBase /docs
>> <IfModule mod_rewrite.c>
>> RewriteEngine on
>> RewriteCond %{REQUEST_FILENAME} -d
>> RewriteRule ^(.*/[^\./]*[^/])$ $1/
>> RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
>> </IfModule>
>> RewriteRule ^index.php.*$ HomePage/
>> Redirect permanent http://docs.mypclinuxos.com/index.php?title=Main_Page
>> http://docs.mypclinuxos.com/
>
> Try moving the last two lines before this line:
>
>> RewriteRule ^(.*)$ wikka.php?wakka=$1 [QSA,L]
>
> I believe your new RewriteRule will never be processed because of the
> [L] (last) flag in the rule immediately preceding it.
>
>  --Brian





More information about the community mailing list