Jump to content



Photo

Converting .htaccess to web.config


  • Please log in to reply
3 replies to this topic

#1 Kalint

Kalint

    Neowinian Senior

  • Tech Issues Solved: 2
  • Joined: 16-January 07

Posted 04 August 2013 - 16:41

We're switching our hosting providers to a windows platform and thus hit this little problem, IIS dont understand .htaaccess.

 

all I want is for this to work:

 

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.*)$ $1.php
 
DirectoryIndex whats-happening-at-Sheryls.php
 
I've tried the converter apps and they're not working :/



#2 Jub Fequois

Jub Fequois

    Owlblood

  • Joined: 06-June 04
  • Location: London, UK
  • OS: OS X, Windows
  • Phone: Nexus 5

Posted 04 August 2013 - 16:44

Are you using http://www.iis.net/d...oft/url-rewrite?



#3 OP Kalint

Kalint

    Neowinian Senior

  • Tech Issues Solved: 2
  • Joined: 16-January 07

Posted 04 August 2013 - 16:47

I just found this doc: http://www.iis.net/l...o-iis-webconfig  We have really cheap hosting so I doubt I can install extensions anyways lol



#4 Kami-

Kami-

    ♫ d(-_-)b ♫

  • Tech Issues Solved: 2
  • Joined: 28-July 08
  • Location: SandBox

Posted 05 August 2013 - 10:55

Many (even cheap) Windows platform hosts have URLRewrite installed by default or are willing to install it upon request.





Click here to login or here to register to remove this ad, it's free!