0

I'm trying to redirect some of an old website page to it's noew version on a new domain like that in an htaccess:

Redirect 301 /oldpage https://new.domain/newpage

If I enter https://old.domain/oldpage**/** in my browser I'm redirected correctly (to https://new.domain/newpage)

However if I enter https://old.domain/oldpage (without the last slash) I'm redirected to https://new.domain/oldpage

What's the probem ?

Entretoiz
  • 73
  • 2
  • 5
  • Does this answer your question? [.htaccess Redirect 301 with trailing slash adds trailing slash to destination](https://serverfault.com/questions/1037305/htaccess-redirect-301-with-trailing-slash-adds-trailing-slash-to-destination) – MrWhite Oct 13 '20 at 13:25
  • The directive you posted won't result in either of the two examples you posted, so either "something else" is performing those redirects, or you are seeing a cached response. Bear in mind that if you have been experimenting with 301 (permanent) redirects then these will get cached persistently by the browser. – MrWhite Oct 13 '20 at 13:27

0 Answers0