I don't know about TextDrive specifically, but at long as you have
mod_rewrite... you're fine.
bascially if your web root folder is ./www, and you can only put
things in ./www - then try the following:
./www/.htaccess
./www/app
./www/cake
...
that [./www/.htaccess] file can contain controls to redirect
everything to app/webroot/index.php... or if you have some cake
application running side-by-side with some other files... you can
forward specific paths, like so:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^/orders$ [OR]
RewriteCond %{REQUEST_URI} ^/orders/* [OR]
RewriteCond %{REQUEST_URI} ^/cart$ [OR]
RewriteCond %{REQUEST_URI} ^/cart/* [OR]
RewriteCond %{REQUEST_URI} ^/shop$ [OR]
RewriteCond %{REQUEST_URI} ^/shop/* [OR]
RewriteCond %{REQUEST_URI} ^/css/* [OR]
RewriteCond %{REQUEST_URI} ^/img/* [OR]
RewriteCond %{REQUEST_URI} ^/js/*
RewriteRule . /app/webroot/%{REQUEST_URI} [L]
# -- handle home page, if there is no query string
RewriteCond %{QUERY_STRING} !.+
RewriteCond %{REQUEST_URI} ^/$ [OR]
RewriteCond %{REQUEST_URI} ^/index.php$
RewriteRule . /app/webroot/pages/home [L]
</IfModule>
hope this helps,
alan
On Apr 28, 7:25 pm, andyreimer <[EMAIL PROTECTED]> wrote:
> Does anyone have experience setting up a CakePHP app within a
> subdirectory on TextDrive shared hosting?
>
> Because of the way that a directory becomes a subdomain, .htaccess
> files don't really work and I've also had difficulty getting the
> webroot set.
>
> Before I spend more time muddling though this, I'm just curious if
> anyone else has experience with TextDrive?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---