Link to home
Start Free TrialLog in
Avatar of intoxicated_curveball
intoxicated_curveball

asked on

URL rewrite 2.0

I am successfully using URL rewrite 2.0 (pluggin for IIS7), for example

mysite.com/content/123/ works fine and server reports url as mysite.com/content/page=123.

I'm wondering if a redirect can also be set up so all existing urls which are written like the the second one will redirect to the first one... or would this create an endless loop??
Avatar of mwochnick
mwochnick
Flag of United States of America image

so if I'm understanding your question correctly
you currently have a rewrite working for
mysite.com/content/page=123  to mysite.com/content/123/
and you want to have
mysite.com/content/page=* to mysite.com/content/*/

Is my understanding correct?
ASKER CERTIFIED SOLUTION
Avatar of Manoj Patil
Manoj Patil
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of intoxicated_curveball
intoxicated_curveball

ASKER

No sorry, I already have it working if the user types in mysite.com/content/*/ the server will read it as mysite.com/content/page=*

But the problem is all of the existing links that look like mysite.com/content/page=* ... if a user clicks the link it will still show as mysite.com/content/page=* and not the more semantic version mysite.com/content/page=*

so I'm wondering if I should be redirecting mysite.com/content/page=*  to mysite.com/content/*/
So you have a rewrite working  want to setup a redirection.  You should be fine.  Here's an article explaining the difference between the two.

http://computer.yourdictionary.com/articles/what-is-the-difference-between-url-rewrite-and-redirect.html