Looks like you will have to use the built-in rewrite rule. I have had problem with a server running virtual hosting... they need to change AllowOverride to All in their httpd.conf file as well as the one in your virtual conf file.
Check out the built in rewrite services, here --> http://manual.cakephp.org/appendix/blog_tutorial (Section 5). Skip to this part "define ('BASE_URL', env('SCRIPT_NAME'));". On Feb 8, 3:56 pm, "Sam Sherlock" <[EMAIL PROTECTED]> wrote: > I have managed to extract information from the support guys at the hosting > company here is what > they say about the mod_rewrite rules of cake > > > > > It would seem that the second line of code is simply not valid. This > > code here: > > > RewriteRule (.*) webroot/$1 [L] > > > it is likely that matching (.*) is too broad, this is probably the cause > > of the issue. You likely need to use a more specific terms. The other > > two lines work fine however: > > > RewriteEngine on > > RewriteRule ^$ webroot/ [L] > > > although it gives 404 errors, seeing as "webroot" doesn't currently > > exist. > > its working without the htaccess, but I would like to get it to work with > since that should work > on the package that I have. > > I think that 1and1 impose some restrictions on mod_rewrite since they are a > Mass Hosting environment > and I suspect that some of this information is withheld. I also think that > they did'nt really look into things > > although it gives 404 errors, seeing as "webroot" doesn't currently exist. > > though it does. Has anyone managed to get mod rewrite to work on 1and1 > with cakephp or got any suggestions > is they a way to make this line (below) narrower / less specific? > > RewriteRule (.*) webroot/$1 [L] > > > I read elsewhere on the web that other users have had issues with > > mod_rewrite in wordpress > fore instance and they have been able to tweak the rules. > > - S --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
