Solved

IIS equivalent of Apache .htaccess mod rewrite for Code Igniter

Posted on 2014-10-27
5
498 Views
Last Modified: 2014-10-28
Hi Experts

I have a Windows server running IIS6 and I am trying to put together a PHP app using CodeIgniter. I want to remove the index.php from the URLs and with Apache this is easily achieved with a .htaccess file. What's the equivalent in IIS6? I've found other similar solutions on here but not quite what I need. I thought I'd mention CodeIgniter as I'm sure I'm not the first PHP developer to need to do the same thing using this framework (or a similar one).

Thanks
0
Comment
Question by:davidcowler
[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
5 Comments
 
LVL 63

Accepted Solution

by:
Simon Butler (Sembee) earned 500 total points
ID: 40408137
As far as I am aware there is no equivalent on IIS 6. Upgrade to something more modern - IIS 7 or 7.5 (Windows 2008 or higher) and you get the rules engine which can do it very easily.

Simon.
0
 
LVL 110

Expert Comment

by:Ray Paseur
ID: 40408405
No points for this, please, but why not just get Linux?  It's free, open source, far more mainstream than Windows and it does what you need!
0
 
LVL 1

Author Comment

by:davidcowler
ID: 40408543
Hi gentlemen, thanks for your comments. Though Linux (with Apache) is the obvious answer, and one I have considered, my IT department won't entertain that idea as they have little experience of it (we work in a Windows-based environment only). Eventually the entire project will be on a new server, which will indeed be the latest version of Windows Server and IIS, and I can work around this for now by allowing the index.php in the Code Igniter URLs, which is fine for now. On that basis I will give the points to Simon. Thanks again for your suggestions.
0
 
LVL 51

Expert Comment

by:Steve Bink
ID: 40408552
I agree with Ray, and your initial statement - Apache makes this cake.

If you're stuck with IIS, I'd agree with Simon Butler - upgrading to IIS7 or 7.5 is going to take some pain out of your life.

If you're absolutely stuck with IIS6, though, there are other options.  I've used Helicon's ISAPI Rewrite in the past, and it works so similarly to Apache's .htaccess files that the learning curve is next to none.
0
 
LVL 51

Expert Comment

by:Steve Bink
ID: 40408557
Guess that will teach me to check my email sooner..  :/
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…

617 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