On 10/24/2010 3:06 PM, Nick Giacchina wrote:
Any suggestions or how-to help on how to get the rewrite functional to
work on this would be great!
Here is the Dolphin .htaccess file:
Options -MultiViews
<IfModule mod_php4.c>
php_flag register_globals Off
</IfModule>
<IfModule mod_php5.c>
php_flag allow_url_include Off
php_flag register_globals Off
</IfModule>
Here's my opportunity to display my ignorance. The following is from my
VERY limited understanding - and I may be 100% wrong. But I'll try anyway.
I don't believe there exists in Cherokee an option similar to MultiViews
- so ignore that. For php, since Cherokee executes php using cgi,
inline php directives are not an option. Instead, you shift any
applicable directives to the php.ini file. To have
application-specific, if not directory-specific, directives you create
multiple php.ini files and/or folders - then setup individual php
information sources in Cherokee to reference those files to create
application-specific php environments.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^blogs/{0,1}$ modules/boonex/blogs/blogs.php [QSA,L]
Add Directory/Handler Redirection rules as
Type: internal
Regular Expression: ^blogs/{0,1}$
Substituion: modules/boonex/blogs/blogs.php [QSA,L]
repeat for the remainder of the rules
RewriteRule ^blogs/all/{0,1}$
modules/boonex/blogs/blogs.php?action=all [QSA,L]
<snip>
RewriteRule ^page/(.*)$ viewPage.php?ID=$1 [QSA,L]
I don't know what to do for the conditional rewrite
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .+ - [L]
RewriteRule ^([^/]+)$ profile.php?ID=$1 [QSA,L]
</IfModule>
AddType application/vnd.adobe.air-application-installer-package+zip .air
AddType application/x-shockwave-flash .swf
Under General/MIME Types, you can add server-wide types if necessary.
--
Daniel
_______________________________________________
Cherokee mailing list
[email protected]
http://lists.octality.com/listinfo/cherokee