Solved

redirect everything

Posted on 2014-10-30
1
77 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

Prologue It is often required to host multiple websites on a single instance of IIS, mostly in development environments instead of on production servers. I am sure it is not much a preferred solution on production servers but this is at least a pos…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

737 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