Home > Software design >  Htaccess - redirecting trailing slash to no-slash URL
Htaccess - redirecting trailing slash to no-slash URL

Time:10-18

I need to redirect trailing slash exact URL ( www.xyz.com/registration/ ) to non-slash ( www.xyz.com/registration ) with httaccess. But only this exact URL, not any other. How to do it?

CodePudding user response:

If you want to do a 301 redirect to a specific URL:

RewriteEngine On    
RedirectMatch 301 /registration/ /registration
  • Related