I need some help with my .htaccess file.
I’ve been messing with it for about a week but cannot get it to work..
I’ve scoured the web for solutions but nothing really addresses my case.
In general, typing: “website.com/info.html?page=12” should show: “website.com/info/12”
and the other way around: “website.com/info/12” should serve: “website.com/info.html?page=12”.
Analogically, without the QUERY_STRING part:
“website.com/info.html” should show: “website.com/info”.
and “website.com/info” should serve: “website.com/info.html”.
However!
“website.com/info/” (only when followed by nothing) should redirect to: “website.com/info”.
How can I achieve this?
It should be simple but I cannot get my head around it yet..
Any tips greatly appreciated!