Hi, I'm new to IIS, so please forgive my ignorance.
I've spent the last day trying to get some friendly urls for our site. I'm used to doing this with htaccess, and it's easy enough. But IIS is stumping me.
Our urls are like - domain.com/linkdetails.aspx?lnkid=23
I wanted to rewrite them into different subpages, to give the site some structure.
So for example, domain.com/aboutus/thecompany and domain.com/prices/outgoing etc.. I'm sure you get the idea. How can I do this.. baring in mind all the pages are generated using the same /linkdetails.aspx?lnkid=23 / 24 / 25 / 26 etc format?
I've managed to get them rewriting, using the web.config file.. and this code as an example:
(
)
Do I need to create folders on the FTP, and duplicate the site into those folders, to handle these requests, and allow me to write seperate redirect rules for each subfolder? The other problem, is now that I have a redirect working.. all my scripts, css, images etc are not working, as I guess the paths are wrong. But I tried updating them, and it's not taking any notice. If someone can give me a hand that would be great. I also have a small budget if someone can take care of it for me as I'm going round in circles. Wish it was as easy as .htaccess & apache.
Any help is massively appreciated.
↧