home | list info | list archive | date index | thread index

Re: apache reddirect branch

On Sun, 8 Jun 2025 11:01:37 -0400
David Patte via linux <linux [ at ] linux-ottawa [ dot ] org> wrote:

> Could someone tell me what i need to put in my apache VirtualHost
> .conf file to redirect a complete set of pages
> from https://mySite/oldsetname/* to https://mySite/newset/*

I'd use mod_rewrite.  I have not tested this at all, but something like:

RewriteEngine  on
RewriteRule "^/oldsetname/(.*)" "/newset/$1" [L,R]

should work.

Regards,

Dianne.

To unsubscribe send a blank message to linux+unsubscribe [ at ] linux-ottawa [ dot ] org
To get help send a blank message to linux+help [ at ] linux-ottawa [ dot ] org
To visit the archives: https://lists.linux-ottawa.org

message navigation