Re: Pretty URLs don't work without .htaccess ?
On Wednesday, January 27, 2010, Miles J mileswjohn...@gmail.com wrote: Yes .htaccess is required because its uses mod_rewrite. If you didn't your URLs would be like so: index.php?url=/items/view/ On Jan 27, 1:18 pm, Johnny Cupcake sparklew...@hotmail.com wrote: This issue was last discussed here in 2006, as far as I can tell. I'd like to know if anything has changed since then. Are pretty URLs available without using .htaccess? For example, with my Apache document root set to my app's webroot dir, a controller items and an action view, and scaffolding on, I would expect something to be available athttp://myserver.com/items/view. But it is not; the result is a 404 error message. IOW, the example given in the book (http://book.cakephp.org/view/105/ Scaffolding) doesn't work. It DOES work if I tryhttp://myserver.com/index.php/items/view instead, but that isn't a very pretty URL. So I wonder, is there anything I can do short of turning on .htaccess, to make the clean/ pretty URLs available? Using Cake v1.2.5, that is. Thanks. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com for more options, visit this group at http://groups.google.com/group/cake-php?hl=en -- Stefano Salvatori M. http://stefano.salvatori.cl/ Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Pretty URLs don't work without .htaccess ?
On Jan 29, 8:55 am, AD7six andydawso...@gmail.com wrote: On Jan 29, 3:35 am, Johnny Cupcake sparklew...@hotmail.com wrote: Why did I disable mod_rewrite in the first place? Well, the core config file says pretty URLs are available regardless (see line 48), so I figured I'd keep complexity to a minimum. I think you misunderstood the comment, it is not saying you can simulate mod_rewrite with cake /controller/action = with mod rewrite and what all the docs will refer to, /index.php/controller/action = pretty url AD PS it's so uncommon for someone to need to do this nowadays I also followed your lead in mixing up the terminology, sorry about that. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Pretty URLs don't work without .htaccess ?
Some web hosting companies do not allow the use of htaccess on shared servers, and sometimes they allow you to use it on linux machines not windows! I think Marcelo has the right answer for this kind of situation Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Pretty URLs don't work without .htaccess ?
Right, I was referring to mod_rewrite and not .htaccess in particular. I see the links generated by HtmlHelper are wrong too. They point to /app/webroot/filename when Apache's root is already set to /app/ webroot/, so they ought to therefore point to /filename. At this point I am only guessing the bug is related to not using mod_rewrite?! I see nothing in the docs about reconfiguring HtmlHelper's base directory, and I followed the instructions in the core app config file to no avail. I'm going to re-enable mod_rewrite and just pray all these problems disappear. On Jan 27, 4:34 pm, Miles J mileswjohn...@gmail.com wrote: Yes .htaccess is required because its uses mod_rewrite. If you didn't your URLs would be like so: index.php?url=/items/view/ On Jan 27, 1:18 pm, Johnny Cupcake sparklew...@hotmail.com wrote: This issue was last discussed here in 2006, as far as I can tell. I'd like to know if anything has changed since then. Are pretty URLs available without using .htaccess? For example, with my Apache document root set to my app's webroot dir, a controller items and an action view, and scaffolding on, I would expect something to be available athttp://myserver.com/items/view. But it is not; the result is a 404 error message. IOW, the example given in the book (http://book.cakephp.org/view/105/ Scaffolding) doesn't work. It DOES work if I tryhttp://myserver.com/index.php/items/view instead, but that isn't a very pretty URL. So I wonder, is there anything I can do short of turning on .htaccess, to make the clean/ pretty URLs available? Using Cake v1.2.5, that is. Thanks. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Pretty URLs don't work without .htaccess ?
On 28 ene, 23:49, Johnny Cupcake sparklew...@hotmail.com wrote: Right, I was referring to mod_rewrite and not .htaccess in particular. I see the links generated by HtmlHelper are wrong too. They point to /app/webroot/filename when Apache's root is already set to /app/ webroot/, so they ought to therefore point to /filename. At this point I am only guessing the bug is related to not using mod_rewrite?! I see nothing in the docs about reconfiguring HtmlHelper's base directory, and I followed the instructions in the core app config file to no avail. I'm going to re-enable mod_rewrite and just pray all these problems disappear. Any path problems inevitably stem from having your config badly defined. Are pretty URLs available without using .htaccess? yes Are pretty URLs available without using mod_rewrite on apache? no Did you disable mod_rewrite for a reason? You can't achieve pretty urls without mod_rewrite or equivalent, and asking how to get pretty urls while actively preventing the possibility is a bit confusing. AD Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Pretty URLs don't work without .htaccess ?
On Wed, Jan 27, 2010 at 9:34 PM, Miles J mileswjohn...@gmail.com wrote: Yes .htaccess is required because its uses mod_rewrite. If you didn't your URLs would be like so: index.php?url=/items/view/ If you uncomment App.baseUrl in core, you can get URLs like index.php/items/view/. Atts. -- MARCELO F ANDRADE Belem, Amazonia, Brazil I took the red pill Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Pretty URLs don't work without .htaccess ?
Why did I disable mod_rewrite in the first place? Well, the core config file says pretty URLs are available regardless (see line 48), so I figured I'd keep complexity to a minimum. Having re-enabled mod_rewrite, both the problems I listed above are resolved. On Jan 28, 4:24 pm, AD7six andydawso...@gmail.com wrote: On 28 ene, 23:49, Johnny Cupcake sparklew...@hotmail.com wrote: Right, I was referring to mod_rewrite and not .htaccess in particular. I see the links generated by HtmlHelper are wrong too. They point to /app/webroot/filename when Apache's root is already set to /app/ webroot/, so they ought to therefore point to /filename. At this point I am only guessing the bug is related to not using mod_rewrite?! I see nothing in the docs about reconfiguring HtmlHelper's base directory, and I followed the instructions in the core app config file to no avail. I'm going to re-enable mod_rewrite and just pray all these problems disappear. Any path problems inevitably stem from having your config badly defined. Are pretty URLs available without using .htaccess? yes Are pretty URLs available without using mod_rewrite on apache? no Did you disable mod_rewrite for a reason? You can't achieve pretty urls without mod_rewrite or equivalent, and asking how to get pretty urls while actively preventing the possibility is a bit confusing. AD Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Pretty URLs don't work without .htaccess ?
On Jan 29, 3:35 am, Johnny Cupcake sparklew...@hotmail.com wrote: Why did I disable mod_rewrite in the first place? Well, the core config file says pretty URLs are available regardless (see line 48), so I figured I'd keep complexity to a minimum. I think you misunderstood the comment, it is not saying you can simulate mod_rewrite with cake /controller/action = with mod rewrite and what all the docs will refer to, /index.php/controller/action = pretty url AD Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Pretty URLs don't work without .htaccess ?
Yes .htaccess is required because its uses mod_rewrite. If you didn't your URLs would be like so: index.php?url=/items/view/ On Jan 27, 1:18 pm, Johnny Cupcake sparklew...@hotmail.com wrote: This issue was last discussed here in 2006, as far as I can tell. I'd like to know if anything has changed since then. Are pretty URLs available without using .htaccess? For example, with my Apache document root set to my app's webroot dir, a controller items and an action view, and scaffolding on, I would expect something to be available athttp://myserver.com/items/view. But it is not; the result is a 404 error message. IOW, the example given in the book (http://book.cakephp.org/view/105/ Scaffolding) doesn't work. It DOES work if I tryhttp://myserver.com/index.php/items/view instead, but that isn't a very pretty URL. So I wonder, is there anything I can do short of turning on .htaccess, to make the clean/ pretty URLs available? Using Cake v1.2.5, that is. Thanks. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en