Solved Redirection doing weird

k1l0b1t

Verified User
Joined
May 10, 2020
Messages
525
Location
Belgium
So, I was migrating a site from /some/path/ urls to /somefile.html urls. Except, when I add a redirect like so:
"Redirect 302 /some/old/path/ /newpath.html" it keeps throwing a 404
The old folder "/some/" is deleted.

any ideas what I'm doing wrong here?

Edit:
I found how to make it work:

Using "RedirectMatch ^/some/old/path/(index\.html)?$ /newpath.html"
Not as pretty, but it works!
 
Last edited:
Back
Top