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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...