How to create redirect with AND without a trailing slash?

Hi,

I want to redirect people who go to either…

  1. http://mydomain.com/abcxyz
  2. http://mydomain.com/abcxyz/

To go to…
http://myotherdomain.com

How do I do it?

Tks much! :smile:

Caesar,

Just those two?

mod_alias works a treat with simple redirects like that:

Redirect 301 /abcxyz http://myotherdomain.com Redirect 301 /abcxyz/ http://myotherdomain.com

mod_alias is a core module in Apache so that’s all you need.

Regards,

DK

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.