I'm trying to setup a IIS 8 Website. I want to ignore the last directory of a typed in url, but not to remove it instead just ignore it. The directory name could be anything
Website URL : https://mywebsite.com
The site has a directory named
/stores, which has a complete website.
The website will use the non-existent directory
/somename in the URL to render the website properly.
If i type in
https://mywebsite.com/stores/somestore obviously i will get
404 Not Found as the directory
somestore does not exist inside
How can i write an IIS Rule to ignore that last part of the URL directory which does not exist but to also keep it in the URL's so it can be used by PHP to render the page properly.
Kind of like Facebook, where a profile is access by adding
/profilename to the URL.
NOTE : I cant use URL Parameters for this due to some technical clashes.
Feel free to update the this questions title, i'm not sure if its entirely correct.