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!
"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: