Luca Crippa Posted January 13, 2014 Share Posted January 13, 2014 Hi All,I would like to transform an url like/reportage?rep=stuff&titl=something_beautifulin something like (note the "-")/reportage/stuff/something-beautifulwith my web.config file (I'm on a win server). It's possible? How can I do it?Thank you!Regards Link to comment Share on other sites More sharing options...
justsomeguy Posted January 13, 2014 Share Posted January 13, 2014 Microsoft has a module for that:http://www.iis.net/downloads/microsoft/url-rewriteThere are several articles on the right side with examples of how to use it. 1 Link to comment Share on other sites More sharing options...
Luca Crippa Posted January 14, 2014 Author Share Posted January 14, 2014 It doesn't work...I have a link named:http://www.coroconcorezzo.it/evento?eve=02&=Concerto-di-Natale-2013I would like to have:http://www.coroconcorezzo.it/evento/02/Concerto-di-Natale-2013But it doesn't work! :-/ Link to comment Share on other sites More sharing options...
justsomeguy Posted January 14, 2014 Share Posted January 14, 2014 Well, then it sounds like you didn't set it up correctly. If you follow the instructions then I imagine it will work, I doubt the entire rewrite module is broken. You need to set it up and then write the rules so that when it receives a certain URL, it converts it to the URL that will call the correct file. Link to comment Share on other sites More sharing options...
Luca Crippa Posted January 20, 2014 Author Share Posted January 20, 2014 Well, then it sounds like you didn't set it up correctly. If you follow the instructions then I imagine it will work, I doubt the entire rewrite module is broken. You need to set it up and then write the rules so that when it receives a certain URL, it converts it to the URL that will call the correct file. Hi there, so, I have a url like this: /new_evento.php?eve=02#####=Concerto-di-Natale-2013 and I would like to rewrite it in /evento/02/Concerto-di-Natale-2013 I used the following lines in web.config file: <rule name="rewev"> <match url="^evento/([0-9]+)/([_0-9a-z-]+)" /> <action type="Rewrite" url="new_evento.php?eve={R:1}&######={R:2}" /> </rule> The result is that the php page doesn't seem to catch the css file!! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now