Jump to content

Recommended Posts

Posted

I'm very confused by IIS rewrite rules and I'm hoping than one of the panel can help.

 

Our new website is at http://oursite.ac.uk and it actually goes to http://oursite.ac.uk/index.php. We have a bunch of directories within the physical site, for example moodle and each of these contains an index.php which redirects the user to the real url for that application. What we find is that http://oursite.ac.uk/moodle/ is directed to the 404 page and http://oursite.ac.uk/moodle/index.php is redirected to moodle. Any idea how we do a rewrite rule to chuck index.php onto the url, if it isn't there?

 

This is out attempt (which does nothing - on the plus side it doesn't break anything)


 
   
   
 
 

Posted

Not sure if I'm missing the obvious or if you're trying to do this specifically that way, but why not just set the default documents and add index.php? Then it'll inherit down and any directory with an index.php would be the default that loads if nothing is put on the end of the folder

 

Steve

Posted

We did get this working with a re-write rule, which is probably way to complicated. BTW we already had index.php as the default document. The problem was c:\inetpub\moodle\index.php was never processed.

 

 
 
   
 
 

 

This is the first rule in the config, so if a user goes to http://oursite.ac.uk/moodle or http://oursite.ac.uk/staff etc, control is passed to the appropriate redirect otherwise the rules supplied by the website people are called. It's a right bodge but I happy enough that it is working.

 

The real problem is they want the new website live today (for open evening tomorrow) and the authors are still fiddling with it and there is a load of dummy content on it. I warned them it is was too soon to go live (and we in IT have had absolutely no say in the new site - what do we know?) but that's what they wanted. Any complaints about it, I'm simply referring everything to the project leader (who is conveniently off this week).

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...