Solved

redirect everything

Posted on 2014-10-30
1
72 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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

What is an ISAPI filter?   •      It's an assembly (.dll file) that can add or change the way IIS works.   •      They can be enabled globally for your web server or on a site-by-site basis.   When the IIS server receives a request, enabling the ISAPI fi…
ASP.Net to Oracle Connectivity Recently I had to develop an ASP.NET application connecting to an Oracle database.As I am doing it first time ,I had to solve several problems. This article will help to such developers  to develop an ASP.NET client…
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

867 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

15 Experts available now in Live!

Get 1:1 Help Now