Solved

URL rewrite 2.0

Posted on 2013-01-21
4
330 Views
Last Modified: 2013-03-04
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??
0
Comment
Question by:intoxicated_curveball
  • 2
4 Comments
 
LVL 12

Expert Comment

by:mwochnick
ID: 38802793
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?
0
 
LVL 19

Accepted Solution

by:
Manoj Patil earned 500 total points
ID: 38803281
0
 

Author Comment

by:intoxicated_curveball
ID: 38811851
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/*/
0
 
LVL 12

Expert Comment

by:mwochnick
ID: 38817666
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
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now