I need a suggestion using .htaccess
(I presume) or any other solution for the following situation:
On the server, for example I have a folder www.mypage.com/accommodation/
which contains index.php
script.
What I would like to do is that when the called URL is something like www.mypage.com/accommodation/apartment-mike
(note no / in the end or extension), that the string "apartment-mike
" ($_SERVER['request_uri']
) is passed to the index.php
script in the accommodation folder instead of trying to directory walk apartment-mike directory.
What would be the best way to do this?