Jump to content
Luca Crippa

url rewrite php concatenations

Recommended Posts

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

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!!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×