[pmwiki-users] Redirect for clean URL

Laurent Meister meister at apfelwiki.de
Sat Feb 9 05:17:25 CST 2008


Hello everybody,

once upon a time we had our url: http://apfelwiki.de/wiki/Main/ 
ApfelWiki and we changed it after some years to http://www.apfelwiki.de/Main/ApfelWiki 
.

In the htaccess I made a redirect for the new "www". So that http://apfelwiki.de/Main/ApfelWiki 
  is redirected to http://www.apfelwiki.de/Main/ApfelWiki. That works  
fine.

But how can I redirect http://(www).apfelwiki.de/wiki/Main/ApfelWiki  
to http://www.apfelwiki.de?

I tried

RewriteEngine On
RewriteBase /
RewriteRule ^wiki/(.*)$ /$1 [R=301,NC,L]

But still get a "PageNotFound" from the wiki engine. How to figure  
out? :-/

Thanks for helping.

kt007



More information about the pmwiki-users mailing list