Solved

redirect everything

Posted on 2014-10-30
1
70 Views
Last Modified: 2014-11-18
I used to use Apache with .htaccess, however now trying to get it to work with IIS using web.config.

What Im trying to do is redirect everything apart from images and files in /handler/ to index.php as a GET statment (eg http://mysite.com/home/Level1 will get translated to http://mysite.com/index.php?P1=Home&P2=Level2) however the ajax statments will still be able to call files in the /handler/ folder and images will still be able to be downloaded.

I havnt even got a clue if this is even possible in a web.config file, can anyone point me in the right direction?

Thank you
0
Comment
Question by:tonelm54
1 Comment
 
LVL 13

Accepted Solution

by:
Greg Hejl earned 500 total points
ID: 40415685
You need to be in the URL Rewrite module.

Here's a place to get started:

http://www.iis.net/learn/extensions/url-rewrite-module/creating-rewrite-rules-for-the-url-rewrite-module
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

705 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

19 Experts available now in Live!

Get 1:1 Help Now