Re: URL rewriting is not properly configured on your server
On Tue, Jan 13, 2015 at 1:31 AM, Anchit Jindal wrote: > The thing which look suspicious to me is that the following files in root > folder are named incorrectly: > > .htaccess is named as _htaccess > > When I tried to rename these files according to their correct name, it gave > 'Internal Server Error'. Probably your host does not allow Apache dir based configuration. Ask your provider about it. Regards. -- MARCELO F ANDRADE | Belem, Amazonia, Brazil | http://marceloandrade.info -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
URL rewriting is not properly configured on your server
While running CakePHP on my system, I am getting the following error: URL rewriting is not properly configured on your server. 1) Help me configure it 2) I don't / can't use URL rewriting mod_rewrite is enabled on server. The thing which look suspicious to me is that the following files in root folder are named incorrectly: .htaccess is named as _htaccess .editorconfig is named as _editorconfig .gitignore is named as _editorconfig .travis.yml is named as _travi.yml When I tried to rename these files according to their correct name, it gave 'Internal Server Error'. Please help me in resolving the error. Thanks -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: URL Rewriting: CakePHP + Nginx + Subdirectory
bump On Tuesday, May 6, 2014 1:34:15 PM UTC-4, Daniel Neri wrote: > > I have a number of different CakePHP applications running on an Nginx > server, however I'm having a lot of trouble getting php files inside my > app/webroot folder to render. > > My current config works with all other scenarios: general url rewriting, > static asset loading,etc; here is my config: > > > > location /FormGenerator { > rewrite_log on; > error_log /var/log/nginx/notice.log notice; # just for debuggin > > if (-f $request_filename) { > break; > } > > if ($request_uri ~ /webroot/index.php) { > break; > } > > rewrite ^/FormGenerator$ /FormGenerator/ permanent; > rewrite ^/FormGenerator/app/webroot/(.*) > /FormGenerator/app/webroot/index.php?url=$1&$args last; > rewrite ^/FormGenerator/(.*)$ /FormGenerator/app/webroot/$1 last; > } > > > location ~ \.php$ { > try_files $uri = 404; > fastcgi_pass unix:/var/run/php-fpm.sock; > fastcgi_index index.php; > fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; > fastcgi_read_timeout 180; > includefastcgi_params; > } > > > My skills are still elementary when it comes to configuring Nginx, so any > guidance would be greatly appreciated. > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
URL Rewriting: CakePHP + Nginx + Subdirectory
I have a number of different CakePHP applications running on an Nginx server, however I'm having a lot of trouble getting php files inside my app/webroot folder to render. My current config works with all other scenarios: general url rewriting, static asset loading,etc; here is my config: location /FormGenerator { rewrite_log on; error_log /var/log/nginx/notice.log notice; # just for debuggin if (-f $request_filename) { break; } if ($request_uri ~ /webroot/index.php) { break; } rewrite ^/FormGenerator$ /FormGenerator/ permanent; rewrite ^/FormGenerator/app/webroot/(.*) /FormGenerator/app/webroot/index.php?url=$1&$args last; rewrite ^/FormGenerator/(.*)$ /FormGenerator/app/webroot/$1 last; } location ~ \.php$ { try_files $uri = 404; fastcgi_pass unix:/var/run/php-fpm.sock; fastcgi_index index.php; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_read_timeout 180; includefastcgi_params; } My skills are still elementary when it comes to configuring Nginx, so any guidance would be greatly appreciated. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/d/optout.
Re: cakephp 1.3.10 - URL rewriting is not properly configured on your server
> > plz uncomment rewrite in apache config file .. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message because you are subscribed to the Google Groups "CakePHP" group. To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscr...@googlegroups.com. To post to this group, send email to cake-php@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php. For more options, visit https://groups.google.com/groups/opt_out.
Re: URL rewriting is not properly configured on your server
It's $this->Html->css() not $html->css() -- that your problem? On Thu, Oct 11, 2012 at 4:09 PM, Advantage+ wrote: > Yes everything appears to be working fine. I copied a fresh version of all > htaccess files. > > I figured there was something wrong when trying to get Mark Story's asset > plugin going but still something is wrong. > Getting missing function css() and missing function js() so I don't know > about to throw everything out the window. > > Dave > > -Original Message- > From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf > Of lowpass > Sent: Thursday, October 11, 2012 3:55 PM > To: cake-php@googlegroups.com > Subject: Re: URL rewriting is not properly configured on your server > > Do you know that .htaccess is being read? Are you certain they're all > present? > > You said "all green" so I guess cake.generic.css is being loaded. Is that > right? If you for some reason copied Cake's CSS rules for certain things > into your own CSS you should also include the last CSS rule: > > #url-rewriting-warning { > display:none; > } > > On Wed, Oct 10, 2012 at 10:30 PM, Advantage+ wrote: >> I am getting the " URL rewriting is not properly configured on your > server" >> message and cannot figure out how to fix this. >> >> >> >> I do not have access to httpd.conf, rather I have a php.ini file >> >> >> >> I have older Cake1.3 sites running on the same server and never had >> any issues with this. >> >> I am setting up a 2.1.3 version right out of the box, direct download >> from git then install and everything else is fine, all green just the URL > issue. >> >> >> >> Any ideas why the older Cake works but new does not? >> >> >> >> Thanks Dave >> >> -- >> Like Us on FaceBook https://www.facebook.com/CakePHP Find us on >> Twitter http://twitter.com/CakePHP >> >> --- >> 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. >> Visit this group at http://groups.google.com/group/cake-php?hl=en. >> >> > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter > http://twitter.com/CakePHP > > --- > 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. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > 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. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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. Visit this group at http://groups.google.com/group/cake-php?hl=en.
RE: URL rewriting is not properly configured on your server
Yes everything appears to be working fine. I copied a fresh version of all htaccess files. I figured there was something wrong when trying to get Mark Story's asset plugin going but still something is wrong. Getting missing function css() and missing function js() so I don't know about to throw everything out the window. Dave -Original Message- From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of lowpass Sent: Thursday, October 11, 2012 3:55 PM To: cake-php@googlegroups.com Subject: Re: URL rewriting is not properly configured on your server Do you know that .htaccess is being read? Are you certain they're all present? You said "all green" so I guess cake.generic.css is being loaded. Is that right? If you for some reason copied Cake's CSS rules for certain things into your own CSS you should also include the last CSS rule: #url-rewriting-warning { display:none; } On Wed, Oct 10, 2012 at 10:30 PM, Advantage+ wrote: > I am getting the " URL rewriting is not properly configured on your server" > message and cannot figure out how to fix this. > > > > I do not have access to httpd.conf, rather I have a php.ini file > > > > I have older Cake1.3 sites running on the same server and never had > any issues with this. > > I am setting up a 2.1.3 version right out of the box, direct download > from git then install and everything else is fine, all green just the URL issue. > > > > Any ideas why the older Cake works but new does not? > > > > Thanks Dave > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP Find us on > Twitter http://twitter.com/CakePHP > > --- > 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. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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. Visit this group at http://groups.google.com/group/cake-php?hl=en. -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: URL rewriting is not properly configured on your server
Do you know that .htaccess is being read? Are you certain they're all present? You said "all green" so I guess cake.generic.css is being loaded. Is that right? If you for some reason copied Cake's CSS rules for certain things into your own CSS you should also include the last CSS rule: #url-rewriting-warning { display:none; } On Wed, Oct 10, 2012 at 10:30 PM, Advantage+ wrote: > I am getting the " URL rewriting is not properly configured on your server" > message and cannot figure out how to fix this. > > > > I do not have access to httpd.conf, rather I have a php.ini file > > > > I have older Cake1.3 sites running on the same server and never had any > issues with this. > > I am setting up a 2.1.3 version right out of the box, direct download from > git then install and everything else is fine, all green just the URL issue. > > > > Any ideas why the older Cake works but new does not? > > > > Thanks Dave > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter http://twitter.com/CakePHP > > --- > 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. > Visit this group at http://groups.google.com/group/cake-php?hl=en. > > -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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. Visit this group at http://groups.google.com/group/cake-php?hl=en.
URL rewriting is not properly configured on your server
I am getting the " URL rewriting is not properly configured on your server" message and cannot figure out how to fix this. I do not have access to httpd.conf, rather I have a php.ini file I have older Cake1.3 sites running on the same server and never had any issues with this. I am setting up a 2.1.3 version right out of the box, direct download from git then install and everything else is fine, all green just the URL issue. Any ideas why the older Cake works but new does not? Thanks Dave -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- 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. Visit this group at http://groups.google.com/group/cake-php?hl=en.
Re: regarding url rewriting
s/heard/hear -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: regarding url rewriting
You wouldn't heard me. Instead, learn how to read http://book.cakephp.org/2.0/en/development/routing.html -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
regarding url rewriting
plz tell me how can i do url rewriting in cake php.. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
URL rewriting is not properly configured on your server
I'm setting up cake for the first time, and trying to follow the blog tutorial, but I can't get URL rewriting to work. I had just finished the part where I created index.ctp in the Posts directory under app/View when I figured out that it's not correctly set up. System info: OS: Centos 6.2 x86_64 Server: Apache/2.2.15 (Unix) Database: mysql Cake version 2.0.5 installed from GIT The server is here in front of me (not GoDaddy or 1and1). Error given: URL rewriting is not properly configured on your server. 1) Help me configure it 2) I don't / can't use URL rewriting When I go to http://localhost/Posts/index, I get a 404 Not Found error. The default page does not have css applied. Stuff I've tried: When looking at the "Help me configure it" page, and from reading the blog tutorial, I set the following in httpd.conf: Options FollowSymLinks AllowOverride All as well as a few things I found from googling around, such as setting AllowOverride to "AllowOverride AuthConfig Indexes Limit All". I checked the file, and see a line which says, "LoadModule rewrite_module modules/mod_rewrite.so" which was automatically installed. >From step 3 in the advanced installation section, all of the .htaccess files appear to have the settings recommended. This server has no virtual hosts. If anybody knows what I might be missing, please let me know. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: cakephp url rewriting and domain name with accents
Not sure, but I think the application will see the domain name as the ACE (or IDNA) version. http://en.wikipedia.org/wiki/Internationalized_domain_name HTH, LipeDjow -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: cakephp url rewriting and domain name with accents
On Thu, Oct 20, 2011 at 9:27 PM, whatsnew wrote: > Hi, > > Does anyone know if cakephp url rewriting handles properly domains > names with accents? Correct me if I'm wrong, but if you speak about URL rewrite you are talking of the web-server and not of CakePHP; however I guess both web-servers (e.g. Apache) and CakePHP should be able to handle such domains flawlessly (supposed you can buy domains with accents). My two cents, Matteo > > I have a customer who wishes/needs a domain with an accent in it > (something like vivelabière.com). I'm aware that's not good idea but > that's not up to me. > > thanks for your insights. > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > 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 > -- http://www.matteolandi.net/ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
cakephp url rewriting and domain name with accents
Hi, Does anyone know if cakephp url rewriting handles properly domains names with accents? I have a customer who wishes/needs a domain with an accent in it (something like vivelabière.com). I'm aware that's not good idea but that's not up to me. thanks for your insights. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: URL rewriting issue with cakephp 1.3.11
nopes...I'm working in INDIA from last 2 years. You would cheer to know i have done with the issue. Actually, the problem was in config file. Here Allow override was none instead of All...:) Thanks Shiv On Thu, Sep 22, 2011 at 3:55 PM, philip onkware wrote: > is that you shankar.did u once work for flsmidth in kenya? > > On Thu, Sep 22, 2011 at 8:10 AM, Shiv Shankar wrote: >> >> I have configured cakephp on WINDOWS SERVER 2008 using WAMP >> combination. I had worked a lot on cakephp using LAMP combination and >> did'n get any problem in the post. But now i am getting the following >> error. when i use the url http://localhost/cakephp/ >> >> >> URL rewriting is not properly configured on your server. >> >> 1. Help me configure it >> 2. I don't / can't use URL rewriting >> >> >> I had gone through a number of tutorials to solve this but none proves >> to be perfect. Please help!! >> >> -- >> Our newest site for the community: CakePHP Video Tutorials >> http://tv.cakephp.org >> Check out the new CakePHP Questions site http://ask.cakephp.org and help >> others with their CakePHP related questions. >> >> >> 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 > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > 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 > -- Shiv Shankar -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: URL rewriting issue with cakephp 1.3.11
is that you shankar.did u once work for flsmidth in kenya? On Thu, Sep 22, 2011 at 8:10 AM, Shiv Shankar wrote: > I have configured cakephp on WINDOWS SERVER 2008 using WAMP > combination. I had worked a lot on cakephp using LAMP combination and > did'n get any problem in the post. But now i am getting the following > error. when i use the url http://localhost/cakephp/ > > > URL rewriting is not properly configured on your server. > > 1. Help me configure it > 2. I don't / can't use URL rewriting > > > I had gone through a number of tutorials to solve this but none proves > to be perfect. Please help!! > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > 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 > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
URL rewriting issue with cakephp 1.3.11
I have configured cakephp on WINDOWS SERVER 2008 using WAMP combination. I had worked a lot on cakephp using LAMP combination and did'n get any problem in the post. But now i am getting the following error. when i use the url http://localhost/cakephp/ URL rewriting is not properly configured on your server. 1. Help me configure it 2. I don't / can't use URL rewriting I had gone through a number of tutorials to solve this but none proves to be perfect. Please help!! -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: Why Cakephp told me "I don't / can't use URL rewriting" when i've visited the website at /posts/index or /posts/view
the default home.ctp has a display to inform if rewrite is not working. is the cake.generic stylesheet applied & can you view localhost/pages/home (with css applied too)? if the answer to the above is yes then all is well the home.ctp you have is displaying an element that the stylesheet should hide. all is infact fine. otherwise you need to look at you mod rewrite setup - search the group for discussions on this (some hosts are pesky & mod rewrite is a PIA anyhoo*) http://book.cakephp.org/view/917/Apache-and-mod_rewrite-and-htaccess *1and1 and godaddy especially - S On 25 August 2011 03:02, bigfish0711 wrote: > hello,buddies. > > i can visited the website in my computer using locahost with /posts/ > index or /posts/view(is apache running the module of rewrite > successful ?the controllers and models are ok.),but cakephp show me > the errors: > > URL rewriting is not properly configured on your server. > Help me configure it > I don't / can't use URL rewriting > > when i using the default layout default.ctp. > > the rewrite module of apache is built-in,I've not write "LoadModule .. > "in httpd.conf,the version of apache is 2.2.19 > the version of php is 5.3.6. > the OS is linux mint. > > ps: my english is so poor,i'm learning it hardly,please point any > syntax error to me,many thanks for everyone. > > > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > 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 > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Why Cakephp told me "I don't / can't use URL rewriting" when i've visited the website at /posts/index or /posts/view
hello,buddies. i can visited the website in my computer using locahost with /posts/ index or /posts/view(is apache running the module of rewrite successful ?the controllers and models are ok.),but cakephp show me the errors: URL rewriting is not properly configured on your server. Help me configure it I don't / can't use URL rewriting when i using the default layout default.ctp. the rewrite module of apache is built-in,I've not write "LoadModule .. "in httpd.conf,the version of apache is 2.2.19 the version of php is 5.3.6. the OS is linux mint. ps: my english is so poor,i'm learning it hardly,please point any syntax error to me,many thanks for everyone. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: cakephp 1.3.10 - URL rewriting is not properly configured on your server
The new css rule for "#url-rewriting-warning" was added to app/webroot/ cake.generic.css but was it was missing in the skeleton files used for baking cake/console/templates/skel/webroot/css/cake.generic.css That's why the warning message incorrectly showed up when you baked an app. Its fixed now on the 1.3 branch. To explain how it works that message is present in you cake/libs/view/ pages/home.ctp in a div with id "url-rewriting-warning". When your url rewriting is setup properly the cake.generic.css would be loaded and hide that message. If your url rewriting isn't configured properly the css file won't be loaded and the message will show up. We had noticed numerous tickets/posts/questions on IRC from newbies about how to fix the problem of not getting colors on homepage when setting up cakephp. So this message was added give them a hint about url rewriting mis-configuration and pointing to the manual. - ADmad On Jun 22, 4:32 pm, Jeremy Burns | Class Outfit wrote: > True, but my point is that this lump of code is only really good while you > are making sure your config is OK. Once you know it is (including db > connection) you'd remove it and replace it with your own genuine layout, home > page and stylesheet, and then handle any errors (such as db connection > failure) in another way. > > On 22 Jun 2011, at 12:27, Thomas Ploch wrote: > > > > > > > > > This message will also appear on fatal errors during home page > > rendering. > > > i.e. the call to check for database connection is sometimes in some > > circumstances raising Fatal Errors. > > > Am Mittwoch, den 22.06.2011, 11:30 +0100 schrieb Jeremy Burns | Class > > Outfit: > >> I just experienced this when setting up a new site and concluded that > >> it is not really an error. The default Cake set up has: > >> * a generic stylesheet (/app/webroot/css/cake.generic.css) > >> * a default layout (/cake/libs/view/layouts) that calls the > >> generic stylesheet > >> * a default home page (/cake/libs/view/pages/home.ctp) > > >> The generic home page has an element with an id of > >> 'url-rewriting-warning'. This is hidden by default by a class in the > >> generic stylesheet if: > >> * you are using the default layout, home page and style sheet > >> * and mod rewrite is working > > >> If mod rewrite is not working, the style sheet will not load and > >> therefore the element will not be hidden, and voila you see the error > >> or if you remove the generic style sheet (as the style sheet is not > >> loading the element will not be hidden). > > >> These defaults are not really intended for production. They are just > >> there to make sure your basic environment is correct. > > >> On 14 Jun 2011, at 19:12, Anderson Machado wrote: > > >>> Hello, > > >>> I did it but to no avail. I'm using wamp. > > >>> I removed the comment that line: LoadModule rewrite_module modules/ > >>> mod_rewrite.so > > >>> I observed the following lines: > > >>> > >>> Options FollowSymLinks > >>> AllowOverride All > >>> # Order deny,allow > >>> # Deny from all > >>> > > >>> Continues to show the error. What can I do? > > >>> On Jun 8, 8:21 am, saidbakr wrote: > >>>> So it is a bug in home.ctp and cake.generic.css and it could be > >>>> solved > >>>> as follows: > > >>>> add an id tag to the div that includes therewritingerror, the tag > >>>> will take the value : id="url-rewriting-warning". then in > >>>> cake.generic.css at the end of it add the following rule: > >>>> #url-rewriting-warning{ > >>>> display: none; > > >>>> } > > >>>> so if rewrite is going fine, it will load the css file anf hence > >>>> the > >>>> error message willnotbe displayed. > > >>>> On Jun 6, 11:59 pm, majna wrote: > > >>>>> You need to update webroot/css/cake.generic.css > >>>>> used byURLrewritingcheck > > >>>>> #url-rewriting-warning { > >>>>> display: none; > > >>>>> } > > >>>>>https://github.com/cakephp/cakephp/blob/1.3/app/webroot/css/cake.gene... > > >>>>> On Jun 6, 4:03 pm, Ryan Olton wrote: > > >>>>>>> Sounds likeyourconfig isn't checkable somehow by the new > &g
Re: cakephp 1.3.10 - URL rewriting is not properly configured on your server
True, but my point is that this lump of code is only really good while you are making sure your config is OK. Once you know it is (including db connection) you'd remove it and replace it with your own genuine layout, home page and stylesheet, and then handle any errors (such as db connection failure) in another way. On 22 Jun 2011, at 12:27, Thomas Ploch wrote: > This message will also appear on fatal errors during home page > rendering. > > i.e. the call to check for database connection is sometimes in some > circumstances raising Fatal Errors. > > Am Mittwoch, den 22.06.2011, 11:30 +0100 schrieb Jeremy Burns | Class > Outfit: >> I just experienced this when setting up a new site and concluded that >> it is not really an error. The default Cake set up has: >> * a generic stylesheet (/app/webroot/css/cake.generic.css) >> * a default layout (/cake/libs/view/layouts) that calls the >>generic stylesheet >> * a default home page (/cake/libs/view/pages/home.ctp) >> >> >> >> The generic home page has an element with an id of >> 'url-rewriting-warning'. This is hidden by default by a class in the >> generic stylesheet if: >> * you are using the default layout, home page and style sheet >> * and mod rewrite is working >> >> >> If mod rewrite is not working, the style sheet will not load and >> therefore the element will not be hidden, and voila you see the error >> or if you remove the generic style sheet (as the style sheet is not >> loading the element will not be hidden). >> >> >> These defaults are not really intended for production. They are just >> there to make sure your basic environment is correct. >> >> On 14 Jun 2011, at 19:12, Anderson Machado wrote: >> >>> Hello, >>> >>> I did it but to no avail. I'm using wamp. >>> >>> I removed the comment that line: LoadModule rewrite_module modules/ >>> mod_rewrite.so >>> >>> I observed the following lines: >>> >>> >>> Options FollowSymLinks >>> AllowOverride All >>> #Order deny,allow >>> #Deny from all >>> >>> >>> Continues to show the error. What can I do? >>> >>> On Jun 8, 8:21 am, saidbakr wrote: >>>> So it is a bug in home.ctp and cake.generic.css and it could be >>>> solved >>>> as follows: >>>> >>>> add an id tag to the div that includes therewritingerror, the tag >>>> will take the value : id="url-rewriting-warning". then in >>>> cake.generic.css at the end of it add the following rule: >>>> #url-rewriting-warning{ >>>> display: none; >>>> >>>> } >>>> >>>> so if rewrite is going fine, it will load the css file anf hence >>>> the >>>> error message willnotbe displayed. >>>> >>>> On Jun 6, 11:59 pm, majna wrote: >>>> >>>> >>>> >>>>> You need to update webroot/css/cake.generic.css >>>>> used byURLrewritingcheck >>>> >>>>> #url-rewriting-warning { >>>>>display: none; >>>> >>>>> } >>>> >>>>> https://github.com/cakephp/cakephp/blob/1.3/app/webroot/css/cake.gene... >>>> >>>>> On Jun 6, 4:03 pm, Ryan Olton wrote: >>>> >>>>>>> Sounds likeyourconfig isn't checkable somehow by the new >>>>>>> 'check for >>>>>>> urlrewriting' validation - work out why and file a bug >>>>>>> report :) >>>> >>>>>> It appears that in the default home.ctp page there is this >>>>>> block of >>>>>> code just hanging out without any conditional code in place to >>>>>> show or >>>>>> hide this text ... in other words, you see in to matter what: >>>> >>>>>> >>>>>>>>>>> __('URLrewritingisnotproperlyconfiguredonyourserver. >>>>>> '); ?> >>>>>> >>>>>> >>>>>>>>>>> href="http://book.cakephp.org/view/917/Apache- >>>>>> and-mod_rewrite-and-htaccess" style="color:#fff;"> >>>>>>>>>>> it')?> >>>
Re: cakephp 1.3.10 - URL rewriting is not properly configured on your server
This message will also appear on fatal errors during home page rendering. i.e. the call to check for database connection is sometimes in some circumstances raising Fatal Errors. Am Mittwoch, den 22.06.2011, 11:30 +0100 schrieb Jeremy Burns | Class Outfit: > I just experienced this when setting up a new site and concluded that > it is not really an error. The default Cake set up has: > * a generic stylesheet (/app/webroot/css/cake.generic.css) > * a default layout (/cake/libs/view/layouts) that calls the > generic stylesheet > * a default home page (/cake/libs/view/pages/home.ctp) > > > > The generic home page has an element with an id of > 'url-rewriting-warning'. This is hidden by default by a class in the > generic stylesheet if: > * you are using the default layout, home page and style sheet > * and mod rewrite is working > > > If mod rewrite is not working, the style sheet will not load and > therefore the element will not be hidden, and voila you see the error > or if you remove the generic style sheet (as the style sheet is not > loading the element will not be hidden). > > > These defaults are not really intended for production. They are just > there to make sure your basic environment is correct. > > On 14 Jun 2011, at 19:12, Anderson Machado wrote: > > > Hello, > > > > I did it but to no avail. I'm using wamp. > > > > I removed the comment that line: LoadModule rewrite_module modules/ > > mod_rewrite.so > > > > I observed the following lines: > > > > > >Options FollowSymLinks > >AllowOverride All > > #Order deny,allow > > #Deny from all > > > > > > Continues to show the error. What can I do? > > > > On Jun 8, 8:21 am, saidbakr wrote: > > > So it is a bug in home.ctp and cake.generic.css and it could be > > > solved > > > as follows: > > > > > > add an id tag to the div that includes therewritingerror, the tag > > > will take the value : id="url-rewriting-warning". then in > > > cake.generic.css at the end of it add the following rule: > > > #url-rewriting-warning{ > > > display: none; > > > > > > } > > > > > > so if rewrite is going fine, it will load the css file anf hence > > > the > > > error message willnotbe displayed. > > > > > > On Jun 6, 11:59 pm, majna wrote: > > > > > > > > > > > > > You need to update webroot/css/cake.generic.css > > > > used byURLrewritingcheck > > > > > > > #url-rewriting-warning { > > > > display: none; > > > > > > > } > > > > > > > https://github.com/cakephp/cakephp/blob/1.3/app/webroot/css/cake.gene... > > > > > > > On Jun 6, 4:03 pm, Ryan Olton wrote: > > > > > > > > > Sounds likeyourconfig isn't checkable somehow by the new > > > > > > 'check for > > > > > > urlrewriting' validation - work out why and file a bug > > > > > > report :) > > > > > > > > It appears that in the default home.ctp page there is this > > > > > block of > > > > > code just hanging out without any conditional code in place to > > > > > show or > > > > > hide this text ... in other words, you see in to matter what: > > > > > > > > > > > > > > > > > __('URLrewritingisnotproperlyconfiguredonyourserver. > > > > > '); ?> > > > > > > > > > > > > > > > > > > > href="http://book.cakephp.org/view/917/Apache- > > > > > and-mod_rewrite-and-htaccess" style="color:#fff;"> > > > > > > > > > it')?> > > > > > > > > > > > > > > > > > > > > > > > > href="http://book.cakephp.org/view/931/CakePHP- > > > > > Core-Configuration-Variables" style="color:#fff;"> > > > > > > > > > useURLrewriting')?> > > > > > > > > > > > > > > > > > > > > > > > > --
Re: cakephp 1.3.10 - URL rewriting is not properly configured on your server
I just experienced this when setting up a new site and concluded that it is not really an error. The default Cake set up has: a generic stylesheet (/app/webroot/css/cake.generic.css) a default layout (/cake/libs/view/layouts) that calls the generic stylesheet a default home page (/cake/libs/view/pages/home.ctp) The generic home page has an element with an id of 'url-rewriting-warning'. This is hidden by default by a class in the generic stylesheet if: you are using the default layout, home page and style sheet and mod rewrite is working If mod rewrite is not working, the style sheet will not load and therefore the element will not be hidden, and voila you see the error or if you remove the generic style sheet (as the style sheet is not loading the element will not be hidden). These defaults are not really intended for production. They are just there to make sure your basic environment is correct. On 14 Jun 2011, at 19:12, Anderson Machado wrote: > Hello, > > I did it but to no avail. I'm using wamp. > > I removed the comment that line: LoadModule rewrite_module modules/ > mod_rewrite.so > > I observed the following lines: > > >Options FollowSymLinks >AllowOverride All > #Order deny,allow > #Deny from all > > > Continues to show the error. What can I do? > > On Jun 8, 8:21 am, saidbakr wrote: >> So it is a bug in home.ctp and cake.generic.css and it could be solved >> as follows: >> >> add an id tag to the div that includes therewritingerror, the tag >> will take the value : id="url-rewriting-warning". then in >> cake.generic.css at the end of it add the following rule: >> #url-rewriting-warning{ >> display: none; >> >> } >> >> so if rewrite is going fine, it will load the css file anf hence the >> error message willnotbe displayed. >> >> On Jun 6, 11:59 pm, majna wrote: >> >> >> >>> You need to update webroot/css/cake.generic.css >>> used byURLrewritingcheck >> >>> #url-rewriting-warning { >>> display: none; >> >>> } >> >>> https://github.com/cakephp/cakephp/blob/1.3/app/webroot/css/cake.gene... >> >>> On Jun 6, 4:03 pm, Ryan Olton wrote: >> >>>>> Sounds likeyourconfig isn't checkable somehow by the new 'check for >>>>> urlrewriting' validation - work out why and file a bug report :) >> >>>> It appears that in the default home.ctp page there is this block of >>>> code just hanging out without any conditional code in place to show or >>>> hide this text ... in other words, you see in to matter what: >> >>>> >>>> >>> '); ?> >>>> >>>> >>>> >>> href="http://book.cakephp.org/view/917/Apache- >>>> and-mod_rewrite-and-htaccess" style="color:#fff;"> >>>> >>>> >>>> >>>> >>>> >>> href="http://book.cakephp.org/view/931/CakePHP- >>>> Core-Configuration-Variables" style="color:#fff;"> >>>> >>> useURLrewriting')?> >>>> >>>> >>>> >>>> > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > 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 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: cakephp 1.3.10 - URL rewriting is not properly configured on your server
Hello, I did it but to no avail. I'm using wamp. I removed the comment that line: LoadModule rewrite_module modules/ mod_rewrite.so I observed the following lines: Options FollowSymLinks AllowOverride All #Order deny,allow #Deny from all Continues to show the error. What can I do? On Jun 8, 8:21 am, saidbakr wrote: > So it is a bug in home.ctp and cake.generic.css and it could be solved > as follows: > > add an id tag to the div that includes therewritingerror, the tag > will take the value : id="url-rewriting-warning". then in > cake.generic.css at the end of it add the following rule: > #url-rewriting-warning{ > display: none; > > } > > so if rewrite is going fine, it will load the css file anf hence the > error message willnotbe displayed. > > On Jun 6, 11:59 pm, majna wrote: > > > > > You need to update webroot/css/cake.generic.css > > used byURLrewritingcheck > > > #url-rewriting-warning { > > display: none; > > > } > > >https://github.com/cakephp/cakephp/blob/1.3/app/webroot/css/cake.gene... > > > On Jun 6, 4:03 pm, Ryan Olton wrote: > > > > > Sounds likeyourconfig isn't checkable somehow by the new 'check for > > > >urlrewriting' validation - work out why and file a bug report :) > > > > It appears that in the default home.ctp page there is this block of > > > code just hanging out without any conditional code in place to show or > > > hide this text ... in other words, you see in to matter what: > > > > > > > > > '); ?> > > > > > > > > > > > href="http://book.cakephp.org/view/917/Apache- > > > and-mod_rewrite-and-htaccess" style="color:#fff;"> > > > > > > > > > > > > > > > > > href="http://book.cakephp.org/view/931/CakePHP- > > > Core-Configuration-Variables" style="color:#fff;"> > > > > > useURLrewriting')?> > > > > > > > > > > > > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: cakephp 1.3.10 - URL rewriting is not properly configured on your server
So it is a bug in home.ctp and cake.generic.css and it could be solved as follows: add an id tag to the div that includes the rewriting error, the tag will take the value : id="url-rewriting-warning". then in cake.generic.css at the end of it add the following rule: #url-rewriting-warning{ display: none; } so if rewrite is going fine, it will load the css file anf hence the error message will not be displayed. On Jun 6, 11:59 pm, majna wrote: > You need to update webroot/css/cake.generic.css > used by URL rewriting check > > #url-rewriting-warning { > display: none; > > } > > https://github.com/cakephp/cakephp/blob/1.3/app/webroot/css/cake.gene... > > On Jun 6, 4:03 pm, Ryan Olton wrote: > > > > Sounds like your config isn't checkable somehow by the new 'check for > > > url rewriting' validation - work out why and file a bug report :) > > > It appears that in the default home.ctp page there is this block of > > code just hanging out without any conditional code in place to show or > > hide this text ... in other words, you see in to matter what: > > > > > > '); ?> > > > > > > > href="http://book.cakephp.org/view/917/Apache- > > and-mod_rewrite-and-htaccess" style="color:#fff;"> > > > > > > > > > > > href="http://book.cakephp.org/view/931/CakePHP- > > Core-Configuration-Variables" style="color:#fff;"> > > > rewriting')?> > > > > > > > > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: cakephp 1.3.10 - URL rewriting is not properly configured on your server
You need to update webroot/css/cake.generic.css used by URL rewriting check #url-rewriting-warning { display: none; } https://github.com/cakephp/cakephp/blob/1.3/app/webroot/css/cake.generic.css#L538 On Jun 6, 4:03 pm, Ryan Olton wrote: > > Sounds like your config isn't checkable somehow by the new 'check for > > url rewriting' validation - work out why and file a bug report :) > > It appears that in the default home.ctp page there is this block of > code just hanging out without any conditional code in place to show or > hide this text ... in other words, you see in to matter what: > > > '); ?> > > > href="http://book.cakephp.org/view/917/Apache- > and-mod_rewrite-and-htaccess" style="color:#fff;"> > > > > > href="http://book.cakephp.org/view/931/CakePHP- > Core-Configuration-Variables" style="color:#fff;"> > rewriting')?> > > > > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: cakephp 1.3.10 - URL rewriting is not properly configured on your server
> Sounds like your config isn't checkable somehow by the new 'check for > url rewriting' validation - work out why and file a bug report :) It appears that in the default home.ctp page there is this block of code just hanging out without any conditional code in place to show or hide this text ... in other words, you see in to matter what: http://book.cakephp.org/view/917/Apache- and-mod_rewrite-and-htaccess" style="color:#fff;"> http://book.cakephp.org/view/931/CakePHP- Core-Configuration-Variables" style="color:#fff;"> -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: cakephp 1.3.10 - URL rewriting is not properly configured on your server
> I am a CakePHP user since version 1.1, my localhost server is working > properly including the URL rewrite. This morning I downloaded last > version of CakePHP and after baking a new App I see the above message. Sounds like your config isn't checkable somehow by the new 'check for url rewriting' validation - work out why and file a bug report :) J -- jon bennett - www.jben.net - blog.jben.net -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: cakephp 1.3.10 - URL rewriting is not properly configured on your server
I am a CakePHP user since version 1.1, my localhost server is working properly including the URL rewrite. This morning I downloaded last version of CakePHP and after baking a new App I see the above message. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Aw: cakephp 1.3.10 - URL rewriting is not properly configured on your server
you should actually know if you can use url rewriting or your do not want to use it. So what is it? Have your read the manual? http://book.cakephp.org ? You will find the answer there... -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
cakephp 1.3.10 - URL rewriting is not properly configured on your server
Hello, after baking new app i see following message on homepage: - URL rewriting is not properly configured on your server. Help me configure it I don't / can't use URL rewriting - My app work correctly.. Is there bug or what? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
URL Rewriting issue in Pagination
Hi, I'm using URL Rewriting for showing my list of data in a particular category (http://localhost/getfreelistsver2/lists/free_article_sites) (All urls are just for example as the project is in my local server). I'm using URL Rewriting for this as below: Router::connect("/lists/free_article_sites/:dba", array("controller" => "lists", "action" => "executecat","1"),array("dba"=>"(.*)")); So the actual function being used is "executecat" to which i'm passing ID of the category to show results. Now when I use the below mentioned URL: http://localhost/getfreelistsver2/lists/free_article_sites/page:2 It never pass the passedArgs like page:2. That's why i'm not able to implement pagination correctly. In this situation I just got a single passedArgs and that is ID (ID is 1 in above case). Please let me know How i can pass the passedArgs and also let me know the effective url rewrite rule for this. After so much searching, I'm here with a hope of result. Thanks in advance. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: Having a little trouble with url rewriting on production server --psybear
On Fri, Jan 21, 2011 at 4:24 AM, psybear83 wrote: > Hey everybody > > I never had to deploy a CakePHP app to a production server before, and > now I'm a bit stuck. > > While my app works like a snap on my development machine, URL > rewriting doesn't seem to work on the production server. This means: > everything works fine as long as I access the app with myapp? > url=controller/action, but myapp/controller/action doesn't work. > > First I remarked that there's no .htaccess file in htdocs. Maybe I > have forgotten to check it into my Subversion (and didn't notice it > because locally i'm using virtual hosts that point right to the app/ > webroot folder)? So I copied it from another live app, and it has the > following content: > > > RewriteEngine on > RewriteRule ^$ app/webroot/ [L] > RewriteRule (.*) app/webroot/$1 [L] > > > But sadly now I always get a 403 forbidden mesage! What could be the > problem here? The server probably either does not allow htaccess (AllowOverride None) or mod_rewrite isn't enabled. If you can edit the virtual host config, add the content of the htaccess file there. Your server will be speedier if it doesn't have to deal with htaccess, in any case. DocumentRoot /var/www/vhosts/your_site/app/webroot Options FollowSymLinks AllowOverride None Order allow,deny Allow from all DirectoryIndex index.php index.html RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: Having a little trouble with url rewriting on production server --psybear
Nobody's got an idea? :-( This is quite frustrating. On Fri, Jan 21, 2011 at 10:24 AM, psybear83 wrote: > Hey everybody > > I never had to deploy a CakePHP app to a production server before, and > now I'm a bit stuck. > > While my app works like a snap on my development machine, URL > rewriting doesn't seem to work on the production server. This means: > everything works fine as long as I access the app with myapp? > url=controller/action, but myapp/controller/action doesn't work. > > First I remarked that there's no .htaccess file in htdocs. Maybe I > have forgotten to check it into my Subversion (and didn't notice it > because locally i'm using virtual hosts that point right to the app/ > webroot folder)? So I copied it from another live app, and it has the > following content: > > > RewriteEngine on > RewriteRule ^$ app/webroot/ [L] > RewriteRule (.*) app/webroot/$1 [L] > > > But sadly now I always get a 403 forbidden mesage! What could be the > problem here? > > Thanks a lot for help. > Josh > > -- > Our newest site for the community: CakePHP Video Tutorials > http://tv.cakephp.org > Check out the new CakePHP Questions site http://ask.cakephp.org and help > others with their CakePHP related questions. > > > 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 > -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Having a little trouble with url rewriting on production server --psybear
Hey everybody I never had to deploy a CakePHP app to a production server before, and now I'm a bit stuck. While my app works like a snap on my development machine, URL rewriting doesn't seem to work on the production server. This means: everything works fine as long as I access the app with myapp? url=controller/action, but myapp/controller/action doesn't work. First I remarked that there's no .htaccess file in htdocs. Maybe I have forgotten to check it into my Subversion (and didn't notice it because locally i'm using virtual hosts that point right to the app/ webroot folder)? So I copied it from another live app, and it has the following content: RewriteEngine on RewriteRule^$ app/webroot/[L] RewriteRule(.*) app/webroot/$1 [L] But sadly now I always get a 403 forbidden mesage! What could be the problem here? Thanks a lot for help. Josh -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. 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
Re: Question regarding Downloads,url rewriting.
On Sat, Jan 8, 2011 at 5:10 AM, ambati kiran wrote: > Hi Cricket > > Thanks for responding. If this is the issue can it be tested on the > directory or issue resolved by htaccess file in cakephp? Not sure what you mean by "tested on the directory" but, yes, it can be resolved in htaccess: Options -MultiViews Better to put that in your main or virtual host config, though, if you are able to, as htaccess slows down the server. > Will the multi option effect other directories on the server if turned off? MultiViews doesn't act on directories, precisely. If you were to request foo.com/bar and you had both a bar directory and a bar.php file, it would choose bar.php. 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: Question regarding Downloads,url rewriting.
Ignore this - I responded to the wrong post. Foo. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 8 Jan 2011, at 10:45, Jeremy Burns | Class Outfit wrote: > I've been advised to look at the new ACL behaviour as it might hold the key. > I haven't done so yet, so can't vouch. 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: Question regarding Downloads,url rewriting.
I've been advised to look at the new ACL behaviour as it might hold the key. I haven't done so yet, so can't vouch. Jeremy Burns Class Outfit jeremybu...@classoutfit.com http://www.classoutfit.com On 8 Jan 2011, at 10:10, ambati kiran wrote: > Hi Cricket > > Thanks for responding. If this is the issue can it be tested on the directory > or issue resolved by htaccess file in cakephp? > > Will the multi option effect other directories on the server if turned off? > > > > Many thanks > Kiran > > > 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 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: Question regarding Downloads,url rewriting.
Hi Cricket Thanks for responding. If this is the issue can it be tested on the directory or issue resolved by htaccess file in cakephp? Will the multi option effect other directories on the server if turned off? Many thanks Kiran 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: Question regarding Downloads,url rewriting.
On Fri, Jan 7, 2011 at 6:06 AM, ambati kiran wrote: > Unfortunatly, the server seems to be configured so that it automatically > adds an type extension to a browser request (eg. type in .com/blah and > if there no directory called blah but there is a file called blah.zip will > load that). This is called MultiViews. Disable it with: Options -MultiViews > does it means that the url rewriting that cakephp relies on is not working > properly, and therefore producing invalid requests. Is there anyway this can > be resolved? Could be. Google "apache multiviews +rewrite" 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
Question regarding Downloads,url rewriting.
Unfortunatly, the server seems to be configured so that it automatically adds an type extension to a browser request (eg. type in .com/blah and if there no directory called blah but there is a file called blah.zip will load that). does it means that the url rewriting that cakephp relies on is not working properly, and therefore producing invalid requests. Is there anyway this can be resolved? 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: Issues with URL Rewriting in IIS
... 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
Issues with URL Rewriting in IIS
Hi together, I used the article from the cookbook ( http://book.cakephp.org/de/view/1636/URL-Rewrites-on-IIS7-Windows-hosts ) to setup the web.config for my IIS to rewrite the URLs, but the access on the files in webroot doesn't work as it should. All requests are handled to the index.php, so if i for example try to access the cakephp image on http://localhost/img/cake.power.gif, there is a message by the Cake Core that ImgController is missing... web.config is in the root folder of the cake installation and is equal to the one shown in the cookbook - where is the mistake? Thank you for help. Regards Tobi 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: Need help in url rewriting in cake php code.
On Jun 15, 2:31 am, mirza ameer wrote: > Hi, > > i did not understand can you please tel me how to do this iam wating > for your reply Mirza, a "slug" is a part of a URL that denotes the name of some item, person, title of article, etc. The spaces are translated to a hyphen or underscore, punctuation is generally removed, "special" characters are translated to ASCII, and the entire string is usually shifted to all lowercase. So, if we had a members page for Mirza Ameer the URL might look like: /members/mirza-ameer In your case, the names of the products can be used for slugs. The database table will require an extra column for the slug. To have Cake create the slugs automatically, download SluggableBehavior from here: http://cake-syrup.sourceforge.net/ingredients/sluggable-behavior/ See the tutorial for more info: http://bakery.cakephp.org/articles/view/slug-behavior in routes.php: Router::connect( '/products', array('controller' => 'products', 'action' => 'index') ); /* If you have other (non-admin) methods/actions in ProductsController, you should * list them before this next route. Otherwise, the name of your action * will be mistaken for a slug. */ Router::connect( '/products/:slug', array('controller' => 'products', 'action' => 'view'), array('slug' => '[-a-z]+', 'pass' => array('slug')) ); The regular expression will match on an lowercase word consisting of hyphens and letters only. If your product names might include numbers, you should change the regexp to: [-a-z0-9]+ Note the "pass" part. This tells Cake that you expect the slug to be passed as a parameter to your method. in product.php (model): var $actsAs = array( 'Sluggable' => array( 'translation' => 'utf-8', 'separator' => '-', 'label' => array('name'), 'length' => 64, 'overwrite' => true ) ); in products_controller.php: public function view($slug = null) { if (empty($slug)) { $this->redirect(array('action' => 'index')); } $data = $this->Product->find( 'first', array( 'conditions' => array( 'Product.slug' => $slug ) ) ); $this->set(compact('data')); } To create a link to a particular product: echo $html->link( $d['Product']['name'], array( 'controller' => 'products', 'action' => 'view', 'slug' => $d['Product']['slug'] ), array('title' => 'click to see this product') ); 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: Need help in url rewriting in cake php code.
Hi, i did not understand can you please tel me how to do this iam wating for your reply thanking you, On Jun 15, 1:00 am, euromark wrote: > you dont need the .html extension - kinda outdated > just use mod_rewrite and routes in order to create like > > http://misspaulettehair.com/products/ > andhttp://misspaulettehair.com/products/Indian-Curly/ > where "Indian-Curly" is your so called slug > > On 14 Jun., 22:34, Jeremy Burns wrote: > > > If you want those urls, you don't want Cake. > > > Jeremy Burns > > jeremybu...@me.com > > > On 14 Jun 2010, at 16:24, mirza ameer wrote: > > > > Hi, > > > > Iam mirza ameer, i want to rewrite my website urls. > > > > for example now my urls for the product menu is : > > >http://misspaulettehair.com/index.php/categories/ > > > > now i want to rewrite this url to like this : > > > http://misspaulettehair.com/products.html > > > > next in the product menu there is a list of items listed there when i > > > clicked Indian Curl in product menu the url like this : > > > >http://misspaulettehair.com/index.php/products/index/3andthe above > > > url has to > > > > change tohttp://misspaulettehair.com/products/Indian-Curly.html. > > > > will u please help in solving this issue, thanks in advance iam wating > > > for your feed back. > > > > -- > > > Thanks & Regards, > > > ___ > > > Mirza Ameer Pasha > > > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp 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 > > > athttp://groups.google.com/group/cake-php?hl=en 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: Need help in url rewriting in cake php code.
you dont need the .html extension - kinda outdated just use mod_rewrite and routes in order to create like http://misspaulettehair.com/products/ and http://misspaulettehair.com/products/Indian-Curly/ where "Indian-Curly" is your so called slug On 14 Jun., 22:34, Jeremy Burns wrote: > If you want those urls, you don't want Cake. > > Jeremy Burns > jeremybu...@me.com > > On 14 Jun 2010, at 16:24, mirza ameer wrote: > > > > > Hi, > > > Iam mirza ameer, i want to rewrite my website urls. > > > for example now my urls for the product menu is : > >http://misspaulettehair.com/index.php/categories/ > > > now i want to rewrite this url to like this : > > http://misspaulettehair.com/products.html > > > next in the product menu there is a list of items listed there when i > > clicked Indian Curl in product menu the url like this : > > >http://misspaulettehair.com/index.php/products/index/3and the above > > url has to > > > change tohttp://misspaulettehair.com/products/Indian-Curly.html. > > > will u please help in solving this issue, thanks in advance iam wating > > for your feed back. > > > -- > > Thanks & Regards, > > ___ > > Mirza Ameer Pasha > > > > > Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 > > athttp://groups.google.com/group/cake-php?hl=en 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: Need help in url rewriting in cake php code.
If you want those urls, you don't want Cake. Jeremy Burns jeremybu...@me.com On 14 Jun 2010, at 16:24, mirza ameer wrote: > Hi, > > Iam mirza ameer, i want to rewrite my website urls. > > for example now my urls for the product menu is : > http://misspaulettehair.com/index.php/categories/ > > now i want to rewrite this url to like this : > http://misspaulettehair.com/products.html > > > next in the product menu there is a list of items listed there when i > clicked Indian Curl in product menu the url like this : > > http://misspaulettehair.com/index.php/products/index/3 and the above > url has to > > change to http://misspaulettehair.com/products/Indian-Curly.html. > > > will u please help in solving this issue, thanks in advance iam wating > for your feed back. > > -- > Thanks & Regards, > ___ > Mirza Ameer Pasha > > > 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 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
Need help in url rewriting in cake php code.
Hi, Iam mirza ameer, i want to rewrite my website urls. for example now my urls for the product menu is : http://misspaulettehair.com/index.php/categories/ now i want to rewrite this url to like this : http://misspaulettehair.com/products.html next in the product menu there is a list of items listed there when i clicked Indian Curl in product menu the url like this : http://misspaulettehair.com/index.php/products/index/3 and the above url has to change to http://misspaulettehair.com/products/Indian-Curly.html. will u please help in solving this issue, thanks in advance iam wating for your feed back. -- Thanks & Regards, ___ Mirza Ameer Pasha 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: URL Rewriting
Ah ... I see. Thanks AD7Six. Btw, one more question what is ":action" anyway ? Feris On 7/5/07, AD7six <[EMAIL PROTECTED]> wrote: > > > > > On Jul 5, 4:41 am, "Feris Thia" <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > I'm a newbie to cakephp, and have learnt that cake's URL with .htaccess > > looks like this : > > > > http://myhost/controllername/action/param1 > > > > can we modified it to > > > > http://myhost/param1/controllername/action > > > > Thanks, > > > > Feris > > Routes. > > http://manual.cakephp.org/chapter/configuration > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: URL Rewriting
On Jul 5, 4:41 am, "Feris Thia" <[EMAIL PROTECTED]> wrote: > Hi All, > > I'm a newbie to cakephp, and have learnt that cake's URL with .htaccess > looks like this : > > http://myhost/controllername/action/param1 > > can we modified it to > > http://myhost/param1/controllername/action > > Thanks, > > Feris Routes. http://manual.cakephp.org/chapter/configuration --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---
URL Rewriting
Hi All, I'm a newbie to cakephp, and have learnt that cake's URL with .htaccess looks like this : http://myhost/controllername/action/param1 can we modified it to http://myhost/param1/controllername/action Thanks, Feris --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~--~~~~--~~--~--~---