I know, but still you can do that and use .htaccess. I do that in my
development server at home
On Thursday, December 18, 2014 6:44:02 PM UTC+2, glk wrote:
Sorry HK, but the docs show that Apache's DocumentRoot should be set the
webroot folder!
--
Like Us on FaceBook
Shouldn't DocumentRoot E:/mydomaint/app/webroot be something like:
DocumentRoot E:/mydomaint
??
On Wednesday, December 17, 2014 11:52:35 PM UTC+2, glk wrote:
Thinking... I wanted to add the following info:
VirtualHost *:8080
ServerName mydomain
ServerAlias mydomain.tld
Sorry HK, but the docs show that Apache's DocumentRoot should be set the
webroot folder!
From the 2.x Docs under Installation:
Production
A production installation is a more flexible way to setup CakePHP. Using
this method allows an entire domain to act as a single CakePHP application.
Check the DocumentRoot statement - you have a t too much mydomaint
should mydomain
The same in your Directory statement :)
Enjoy, John
On Wednesday, 17 December 2014 23:52:35 UTC+2, glk wrote:
Thinking... I wanted to add the following info:
VirtualHost *:8080
ServerName mydomain
://mydomain:8080/app/webroot/css/cake.generic.css
echo $this-Html-css('cake.generic.css');
The line of code above creates a link like this when using pretty urls:
link href=/app/webroot/css/cake.generic.css type=text/css rel=
stylesheet
which is nowhere to be found on the server since the domain
, you’ll need to use CakePHP’s
built-in pretty URLs. In /app/Config/core.php, uncomment the line that
looks like:
Configure::write('App.baseUrl', env('SCRIPT_NAME'));
Also remove these .htaccess files:
/.htaccess/app/.htaccess/app/webroot/.htaccess
This will make your URLs look like
Thinking... I wanted to add the following info:
VirtualHost *:8080
ServerName mydomain
ServerAlias mydomain.tld
DocumentRoot E:/mydomaint/app/webroot
Directory E:/mydomaint/app/webroot
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
-php@googlegroups.com
Reply-To: cake-php@googlegroups.com
Subject: Pretty URLs
Hi
In my application, if I want to access a link, the url in the browser will
be something like http://application/controller/action/parameter:value.
However, browsing on cakephp.org the urls are something like (and I
On Tuesday, 5 June 2012 13:17:39 UTC+2, Florin Trifu wrote:
Can someone please help me with the questions I've asked in the email
bellow?
You are talking about routes
http://book.cakephp.org/2.0/en/development/routing.html
AD
--
Our newest site for the community: CakePHP Video
/advanced-installation.html.
I want my urls to look the same way, with that ending in .html, and that
format like browsing directories.
I would also want to show different names for the controllers and for the
actions, I want them in my language and not in English.
How can I do that? Are those pretty
Hi,
I wonder how to do, in order to get my url look like
www.mysite.com/mode/1290132
and not
www.mysite.com/mode/index/1290132
thanks for the help :)
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site
nevermind, routing.php did the trick.
2011/9/1 Ricardo mastermind...@gmail.com
Hi,
I wonder how to do, in order to get my url look like
www.mysite.com/mode/1290132
and not
www.mysite.com/mode/index/1290132
thanks for the help :)
--
cccaf...
--
Our newest site for the
Hi Folks
I am new to CakePHP. I am going through the manual:
http://book.cakephp.org/view/918/Pretty-URLs-and-Lighttpd
where is explained that in order to use Pretty URLs in cakephp, we
have to place a lua script in /
etc/lighttpd/cake.
But the big question is : Whereabouts in my project am I
On Mar 21, 1:27 am, axel9641 axell9...@gmail.com wrote:
Hi Folks
I am new to CakePHP. I am going through the
manual:http://book.cakephp.org/view/918/Pretty-URLs-and-Lighttpd
where is explained that in order to use Pretty URLs in cakephp, we
have to place a lua script in /
etc/lighttpd
the
manual:http://book.cakephp.org/view/918/Pretty-URLs-and-Lighttpd
where is explained that in order to use Pretty URLs in cakephp, we
have to place a lua script in /
etc/lighttpd/cake.
But the big question is : Whereabouts in my project am I supposed to
place it???
lua scripts
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
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
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
. 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
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
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.
--
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
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
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
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
You must add one of the following at the begining of your router.php
configuration file in order to use the 'page' parameter in url and get your
url parsed by the router.
This comment come from the Router class itself:
* Do not parse any named parameters:
* {{{ Router::connectNamed(false);
Folks i am new to CakePHP. I am going through the manual which assumes
that the user is on Linux Or Unix System. I want to ask one question
http://book.cakephp.org/view/782/Lighttpd-and-mod_magnet LINK says
that in order to use Pretty URLs in cakephp, place this lua script in /
etc/lighttpd
camran.ham...@gmail.com wrote:
Folks i am new to CakePHP. I am going through the manual which assumes
that the user is on Linux Or Unix System. I want to ask one question
http://book.cakephp.org/view/782/Lighttpd-and-mod_magnetLINK says
that in order to use Pretty URLs in cakephp, place this lua
Hello everybody,
Is there a way to configure CakePHP NOT to use Pretty Urls?
I'm using the latest version.
Best Regards
PM
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
CakePHP group.
To post to this group, send
config.core.php - line 59(ish)
2009/1/28 PaulMan pho...@gmail.com
Hello everybody,
Is there a way to configure CakePHP NOT to use Pretty Urls?
I'm using the latest version.
Best Regards
PM
--~--~-~--~~~---~--~~
You received this message because you
=controller/action (no slash before
controller)
Let us know.
-Erik
On May 15, 6:44 pm, Markitusss [EMAIL PROTECTED] wrote:
Hi all,
I've been trying to run cake on a godaddy hosting service. mod_rewrite
is not available, so I set up cake to use its Pretty URLs, by
uncommenting the line inside
Try:
www.mysite.com/index.php?url=controller/action (no slash before
controller)
Let us know.
-Erik
On May 15, 6:44 pm, Markitusss [EMAIL PROTECTED] wrote:
Hi all,
I've been trying to run cake on a godaddy hosting service. mod_rewrite
is not available, so I set up cake to use its Pretty
. mod_rewrite
is not available, so I set up cake to use its Pretty URLs, by
uncommenting the line inside core.php and by deleting .htaccess files.
I got the index page to perfectly, with CSS styling and connection to
the database, but I can't access controllers/actions. I get a 404 not
found. I
/index.php?url=controller/action (no slash before
controller)
Let us know.
-Erik
On May 15, 6:44 pm, Markitusss [EMAIL PROTECTED] wrote:
Hi all,
I've been trying to run cake on a godaddy hosting service. mod_rewrite
is not available, so I set up cake to use its Pretty URLs, by
uncommenting
Hi all,
I've been trying to run cake on a godaddy hosting service. mod_rewrite
is not available, so I set up cake to use its Pretty URLs, by
uncommenting the line inside core.php and by deleting .htaccess files.
I got the index page to perfectly, with CSS styling and connection to
the database
Cannot get the pretty urls to work. I have removed the htaccess files,
and uncommented the BASE_URL in core.php but hopeless. Cant even get
the un-pretty urls to work. The url populates with the referes page
contoller and function. Please check
http://www.ubiview.eu/index.php/users/login
What does your $form-create() line look like? You're getting:
form action=/index.php/users/login
which doesn't look right. Although, you said you've removed htacess
files--why is that?
On Fri, Mar 7, 2008 at 9:00 AM, jam [EMAIL PROTECTED] wrote:
Cannot get the pretty urls to work. I have
On Mar 3, 7:03 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
I'm using Andy's PaginationComponent in an admin action. The first
page loads fine but something's wrong with the route that's causing an
error. Here's the setup:
($page and $show would be set from $this-params or a default)
Right, I do know the difference between passedArgs params; I was
getting mixed up because I'd been trying all sorts of combinations.
I'll ditch the component and try the built-in. I'm not exactly sure
why I wasn't using that in the first place.
thanks
On Mon, Mar 3, 2008 at 6:24 AM, AD7six
I'm using Andy's PaginationComponent in an admin action. The first
page loads fine but something's wrong with the route that's causing an
error. Here's the setup:
($page and $show would be set from $this-params or a default)
$criteria = null;
$parameters = array('page' = $page);
$options =
My mistake, I should have looked a little harder in the threads!
On Jun 4, 2:11 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
Hello bakers,
I am moving an application from my testing server to a production
server
and mod_rewrite seemed to be acting funny (wasn't finding the CSS
file,
Hello bakers,
I am moving an application from my testing server to a production
server
and mod_rewrite seemed to be acting funny (wasn't finding the CSS
file,
looking for files in the wrong place), so I switched to using the
cake
pretty URLs. This solved the CSS problem, but for instance, when
Hi there,
I am wondering how we can achieve such pretty URLs below with
CakePHP...
1- www.mydomain.com/accounting/accounting-overview-ACCA.html
2- www.mydomain.com/accounting/ledger-details.html
3- www.mydomain.com/accounting/how-to-make-double-entry-system.html
4- www.mydomain.com/services
Let me clear a bit more, for the first link accounting is the
category of a post titled (or URL taged as) accounting-overview-ACCA
Any luck with such URLs with Cake
Cheers!
TM
On Apr 29, 4:52 pm, TM [EMAIL PROTECTED] wrote:
Hi there,
I am wondering how we can achieve such pretty URLs
:
Hi there,
I am wondering how we can achieve such pretty URLs below with
CakePHP...
1-www.mydomain.com/accounting/accounting-overview-ACCA.html
2-www.mydomain.com/accounting/ledger-details.html
3-www.mydomain.com/accounting/how-to-make-double-entry-system.html
4-www.mydomain.com
I got mod_rewrite turned on, so the links above don't help solve the
problem. I'd still like to know if anyone has seen the
/cgi-php/phpwrapper
thing before, though...
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I'm trying to get a development install up and running on a shared
server (No mod_rewrite or access to the httpd.conf file), but am having
problems with:
define ('BASE_URL', env('SCRIPT_NAME'));
This line in the core.php file, which usually allows me to run a
development install when there is
47 matches
Mail list logo