Ignore last string in URL after the last slash
问题 for example: when a user types in www.website.com/site/blue , I want them to go to www.website.com/site/index.php in the web browser. The reason for this is that I want to use php to grab blue from the URL and place it in www.website.com/site/index.php So when someone types in www.website.com/site/blue ... they should see "Hello blue!!!" in www.website.com/site/index.php 回答1: It sounds like you need to use an htaccess file and Apache's mod_rewrite. If you are allowed to do this on your server