Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

URL Rewrite not working properly

$
0
0

Hello people,

I am a total newbie when it comes to URL rewrite (i am starting to believe i am a total newbie in general) and i have a problem with a URL rewrite rule i am trying to create.

So, we have this site url, let's say   

mysite.com/items.aspx?category_name=test&category_id=1 which i am trying to rewrite like

mysite.com/items/test/1

Following iis.learn tutorial (pretty straightforward) i made a rule to enable user-friendly url adding

www.mysite.com/items.aspx?category_name=test&category_id=1 as the example of the internal url and selected the appropriate option for the url the web visitors see. I also created the corresponding redirect and outbound rewrite rules.

Friendly url works just fine, but that's where my problems start. When i try to access any other page from the one that has the friendly url i get a url that looks like thiswww.mysite.com/items/test/1/default (if i try to access the default page for example)

H have no idea where to begin to search for the problem. I am confused by the countless url rewrite "tutorials" out there that have managed to make me even more confused instead of helping me. I have started to think my problem lies on the website code(the website is not mine, i "inherited" it from a friend who was working on the same position i am atm) but before trying to make out what is wrong in the code i hoped to find an alternative solution.

Thanks in advance to anyone who bothers checking this, it would be a big help if you could point me on the right direction!


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>