[Pmwiki-users] Invalid pages and redirects (was: Upload problem)
Patrick R. Michaud
pmichaud
Tue Mar 2 00:25:35 CST 2004
On Sun, Feb 29, 2004 at 09:12:40PM +1300, Robin Sheat wrote:
> I have just redirected an old static site to the PmWiki
> equivalent, however if someone links into the original site (say
> http://www.kallisti.net.nz/ours/contact they are taken to
> http://www.kallisti.net.nz/Ours/HomePage/contact which doesn't exists.
>
> [...] is there a way to do an .htaccess Redirect that doesn't
> append the other stuff on the URL to the redirected URL?
In .htaccess, try
RedirectMatch /ours/.* http://www.kallisti.net.nz/Ours/HomePage
the ".*" causes Apache to replace the entire URL with the new one instead
of just replacing the matching prefix.
Pm
More information about the pmwiki-users
mailing list