views:

205

answers:

1

Hi, I'm trying to move a CakePHP app from a Windows Apache setup to a GoDaddy shared IIS7 setup. It's been easy to migrate except for the Apache mod_rewrite part -- which obviously wouldn't work in IIS7. I basically have no url rewriting capability, which is crucial for Cake to work. GoDaddy now offers MS URL Rewriter, but they don't offer technical support for it. I haven't seen any blog post that discusses how to do this in detail. I'd really like to avoid third-party software, especially since GoDaddy provides MS URL Rewriter, which ought to be more than sufficient.

The mod_rewrite directives that will allow Cake to work on GoDaddy look ridiculously easy (pasted below); can someone help me convert it to a web.config I can use with URL Rewriter? The URL Rewriter manual is really long and complicated. I'd rather not have to read the whole thing if I don't have to. Also, it would be useful know if you can get CakePHP running on GoDaddy IIS.

Here's the contents of the apache .htaccess file:

<IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L]
</IfModule>

Here's a link that discusses GoDaddy's limited support for URL Rewriter:

http://stackoverflow.com/questions/416727/url-rewriting-under-iis-at-godaddy

Many thanks!

Rich

A: 

I have not tried cake on godaddy personally (I have on another budget host - 1&1 rewritebase helps)

others report issues with cake on godaddy windows packages

http://groups.google.co.uk/group/cake-php/browse_thread/thread/d6fe9414149d7cc5/b33a294e43721c63?lnk=gst&amp;q=godaddy+windows#b33a294e43721c63

http://cakephp.19694.n2.nabble.com/Hosting-A-Cake-App-On-GoDaddy-td1328713.html

--

Cake can work without modrewrite if you adjust the config/core.php file

though you lose some of cakes tastiness :)

sam