If you're using google apps, there is a file that google wants in the
root of the domain to verify ownership. Is there a mod rewrite rule I
can add to the htaccess file so that when navigating to
http://mysite.com/randomgooglefilename.html you can access that file
instead of going through cakephp
RewriteRule ^$ app/webroot/[L]
RewriteCond %{REQUEST_URI} !^/?(idevaffiliate|phpmyadmin|google).*$
RewriteCond %{REQUEST_URI} !^/?(crossdomain.xml|robots.txt|favicon.ico|
sitemap.xml)$
RewriteRule (.*) app/webroot/$1 [L]
--
Our newest site for the community: CakePHP Video Tutorials
That seems to give me an internal server error, 500 when I try that.
On Oct 24, 11:47 am, Andrey Puhalevich a.puhalev...@gmail.com wrote:
RewriteRule ^$ app/webroot/ [L]
RewriteCond %{REQUEST_URI} !^/?(idevaffiliate|phpmyadmin|google).*$
RewriteCond %{REQUEST_URI}
Just place it into the app/webroot/randomgooglefilename.html folder so it will
be served directly
Andras Kende
On Oct 24, 2011, at 10:17 AM, fly2279 wrote:
If you're using google apps, there is a file that google wants in the
root of the domain to verify ownership. Is there a mod rewrite
, at 10:17 AM, fly2279 wrote:
If you're using google apps, there is a file that google wants in the
root of the domain to verify ownership. Is there a mod rewrite rule I
can add to the htaccess file so that when navigating to
http://mysite.com/randomgooglefilename.html you can access that file
just fyi, i solved the issue. the problem was I had cakephp on a
subfolder, so i just added a RewriteBase /subfolder/ to the .htaccess
On Mar 19, 2:07 am, miryamfv mirya...@gmail.com wrote:
Hello,
I'm trying to get mod_rewrite to work on iis, my hosting company is
using themicronovaemodule
Hello,
I have a website where both website.com/MyDirectory/xxx and
website.com/mydirectory/xxx
point to the same location. The only difference is the capitals. To
help optimize the website for SEO, I would want to do a 301 redirect
from /MyDirectory/ to /mydirectory/
Is this possible?
Check
Despite this is not a Cake question:
Here you can find the Apache mod_rewrite documentation:
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
Remember that Google is your best friend:
http://tinyurl.com/ylhr2pu
Lucca Mordente
On 23 mar, 09:48, thankyou gregbo...@gmail.com wrote:
Hello,
Hello,
I'm trying to get mod_rewrite to work on iis, my hosting company is
using the micronovae module but which allows you use a .htaccess file,
but I cant make it work,
does anybody know about this?
Thank you very much
Check out the new CakePHP Questions site http://cakeqs.org and help
Hi ,
I have a cakephp application where there's a link:
http://www.mywebsite.com/numbers/view/112-332-3322 -- BTW...there are
a variety of numbers after view/ not just 112-332-3322
I would like to make that viewable to the users as:
http://www.mywebsite.com/112-332-3322
Is there a way to use mod
a cakephp application where there's a
link:http://www.mywebsite.com/numbers/view/112-332-3322-- BTW...there are
a variety of numbers after view/ not just 112-332-3322
I would like to make that viewable to the users
as:http://www.mywebsite.com/112-332-3322
Is there a way to use mod-rewrite
somewhere.
HTHAB
On Feb 25, 9:57 am, Roey roeygr...@gmail.com wrote:
Hi
I have a strange problem with mod rewrite:
I use cakephp version 1.2.5 with admin routing and RequestHandler
component.
My system is Ubuntu linux 9.10 with apache2, mysql and php 5.
I have a few controllers (users, places
Hi
I have a strange problem with mod rewrite:
I use cakephp version 1.2.5 with admin routing and RequestHandler
component.
My system is Ubuntu linux 9.10 with apache2, mysql and php 5.
I have a few controllers (users, places and cities). When I go to the
places controller without admin route
Not sure exactly what you are wanting to do, but CakePHP automatically
allows you to access files in webroot.
So if you have a app/webroot/manager and you visit domain.com/manager
you will automatically access whatever files are in app/webroot/
manager. This allows you to have 3rd party scripts
Am I right when I say that you want
/app/webroot/manager/existing_file -- should be accessible
/app/webroot/manager/nonexistent_file -- should not be rewritten to a
missing controller page
It that is what you want, the lazy answer is that you don't have to
worry. When you are live... at debug
I've got problem. Is a possibility to skip folder in modrewrite? For
example I have folder in /app/webroot/manager/ -- I want to skip
rewrite on manager folder. PS: this folder is on manager.domain.com
--~--~-~--~~~---~--~~
You received this message because you are
Hello,
i try to install CakePHP on my webhosting. I copied all files to
subdirectory cake but with default .htaccess a get 404 error. I put
this line in .htaccess RewriteBase /cake. Now without error, i see
text but as i examined code, the path to favicon or css file is
invalid - with /cake.
sorry, my stupidity, it works ok.
closed
On 4 srp, 13:17, ondicz ondrej.ha...@gmail.com wrote:
Hello,
i try to install CakePHP on my webhosting. I copied all files to
subdirectory cake but with default .htaccess a get 404 error. I put
this line in .htaccess RewriteBase /cake. Now without
ok. Now I get a 500 error.
I used the method for bypassing mod rewrite by changing the line in
the config file, css works on the main page. Then as a quick test I
tried making this note app from (http://www.sitepoint.com/article/
application-development-cakephp/2/) and I get a 404 page when I
Wonderful, thank you
On Feb 9, 10:31 am, Webweave webwe...@gmail.com wrote:
Here's a good writeup from the
bakery:http://bakery.cakephp.org/articles/view/mod-rewrite-on-godaddy-shared...
On Feb 9, 5:53 am, thankyou gregbo...@gmail.com wrote:
I'm not very familiar with modrewrite -- do I
I'm not very familiar with modrewrite -- do I just add the text
RewriteBase to the .htaccess file?
On Feb 9, 12:17 am, Webweave webwe...@gmail.com wrote:
You need to add the RewriteBase to the .htaccess files in the folder
where you blog is.
Assuming that blog.mywebsite.com is set up to
Here's a good writeup from the bakery:
http://bakery.cakephp.org/articles/view/mod-rewrite-on-godaddy-shared-hosting
On Feb 9, 5:53 am, thankyou gregbo...@gmail.com wrote:
I'm not very familiar with modrewrite -- do I just add the text
RewriteBase to the .htaccess file?
On Feb 9, 12:17 am
Hello,
I have the .htaccess file setup so that it makes cakephp work fine.
The problem is that I also want to add a blog to the website at /blog,
ie blog.websitename.com. The folder is in /blog.
My .htaccess file info is below, what do I need to do to make the
blog.websitename.com work?
Hello,
I have the .htaccess file setup so that it makes cakephp work fine at
mywebsite.com.
The problem is that I also want to add a blog to the website at the
folder /blog,
so I can make blog.mywebsite.com work. The folder is in /blog.
My .htaccess file info is below, what do I need to do to
You need to add the RewriteBase to the .htaccess files in the folder
where you blog is.
Assuming that blog.mywebsite.com is set up to serve the files from
the /blog folder, you just need to make sure you have the .htaccess
files as described here:
Hi ,
I am having an web application in Cakephp 1.1 . I have an URL such as
this one http://www.mysite.com/users/username I want to make this
URL as http://www.mysite.com/username
How can i do this. Please help.
Also can i upgrade my current Cakephp 1.1 application to Cakephp1.2 .
if yes,
Hi all,
I have an app at http://orders.local/
and use URLs such as
http://orders.local/orders
http://orders.local/invoicing
etc
I have php soap calls under
http://orders.local/report/ and wish to exclude /report from the
CakePHP rewrites.
In http://orders.local/.htaccess I have tried:
IfModule
After hitting IRC kuja indicated a point that I have not seen
elsewhere:
Once you have the RewriteCond entered in the .htaccess file you need
to place the excluded folder under /app/webroot.
So in the above example /report is now under /app/webroot/report
and the rewritecond is
RewriteCond
Alternatively you could use the QUERY_STRING in reqriteCond:
RewriteCond %(QUERY_STRING) !^/report/.*$ should work..
hth
On Apr 28, 2:35 pm, holodigm [EMAIL PROTECTED] wrote:
After hitting IRC kuja indicated a point that I have not seen
elsewhere:
Once you have the RewriteCond entered in
Hi,
Laeffe,
Thanks for help yes I too tried something similar and made some
progress but there is still a problem with my CSS and JS file
loading..
Now when I go to any one of the inner pages.. the CSS and JS files
link is wrong..
example if you go to
http://72.167.47.152/~hoteljob/users/login
Hi, I hade big problems trying to use mod_rewrite with apache in my
home dir when i tried to setup cake. But i solved it by adding
RewriteBase to more or less all of the .htaccess files. Did somthing
like this:
(in all .htaccess)
RewriteBase /~username/the/folder/that/this-file-is/in/
If you
Hi Francky,
Yes I'm using the ~ type as it is a temp url.. is that a problem with
cake applications?
The default .htaccess file that comes with cake isnt working.. it
gives me a 404 error, hence the need to play around with the .htaccess
file
Or alternatively is there a way I can avoid using ~
Oh I thought.. I'd mention its a GoDaddy server, but its a dedicated/
Virtual Dedicated Server
and I know there have been issues with others on their Godaddy Co-
hosted servers,
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the
Hi,
We built an application using CakePHP 1.2 and it works fine on our
local development sever.
However when we try to upload it to this server.. nothing seems to
work..
Here is the URL
http://72.167.47.152/~hoteljob/
I'm guessing it has to with either the mod rewrite or something wrong
development sever.
However when we try to upload it to this server.. nothing seems to
work..
Here is the URLhttp://72.167.47.152/~hoteljob/
I'm guessing it has to with either the mod rewrite or something wrong
with the htaccess files.
Actually we had to modify the lines in the htaccess on the root
on our
local development sever.
However when we try to upload it to this server.. nothing seems to
work..
Here is the URLhttp://72.167.47.152/~hoteljob/
I'm guessing it has to with either the mod rewrite or something wrong
with the htaccess files.
Actually we had to modify
fine on our
local development sever.
However when we try to upload it to this server.. nothing seems to
work..
Here is the URLhttp://72.167.47.152/~hoteljob/
I'm guessing it has to with either the mod rewrite or something wrong
with the htaccess files.
Actually we had to modify
Hi!
My host uses apache but does not have mod_rewrite available right now. I'm
wondering if I could be pointed to any information on how to
a) have my application use regular urls
b) have my urls made prettier (without using mod_rewrite)
Are these possible?
Thanks heaps!
- W
Hi,
The project I've been working on in Cake has been working for weeks,
even months. Yet when I opened up my laptop this morning and tried to
open up my project, none of the normal links work (links to methods,
etc.)! My webroot folder cannot seem to be found either, so all of
the CSS is
On 6/19/07, andy [EMAIL PROTECTED] wrote:
Hi,
The project I've been working on in Cake has been working for weeks,
even months. Yet when I opened up my laptop this morning and tried to
open up my project, none of the normal links work (links to methods,
etc.)! My webroot folder cannot
Yeah, I know that nothing should stop working if nothing has been done
to it.
So, it might be the localhost webserver that has caused some sort of
problem.
That's what I thought, too, and I have checked my httpd.conf and
restarted the web server a few times to see if that would fix the
problem.
On 6/19/07, andy [EMAIL PROTECTED] wrote:
That's what I thought, too, and I have checked my httpd.conf and
restarted the web server a few times to see if that would fix the
problem. But Cake still doesn't run like it should. I checked
another PHP/MySQL/Apache-based script program on the
No, I haven't touched the core Cake files since I set this project up.
I haven't touched the config files for a while as well... which is why
I don't understand this problem.
On Jun 19, 10:59 am, Chris Hartjes [EMAIL PROTECTED] wrote:
On 6/19/07, andy [EMAIL PROTECTED] wrote:
That's what I
Do you have access to your HTTPD error log?
On 6/19/07, andy [EMAIL PROTECTED] wrote:
No, I haven't touched the core Cake files since I set this project up.
I haven't touched the config files for a while as well... which is why
I don't understand this problem.
On Jun 19, 10:59 am, Chris
Okay, now I know what happened--
I was copying a previously created .htaccess file into the main cake
directory. What I didn't know is that there is already a .htaccess
file in that folder (as well as the webroot folder, apparently,) and
so... I accidentally overwrote the old .htaccess.
Stupid
Sorry, somehow my response to this has been lost.
Anyway, earlier this morning, I replied to you guys (or tried to,)
that I finally realized what I had messed up in the cake project.
I accidentally overwrote one of the main .htaccess files because
I didn't realize there was already one in the
both of your responses showed up for me ;-)
maybe set your .htaccess to be read only, to avoid an issue like that?
that's happened many times in the past for me, i hate it :-)
that's why now I keep all my code in SVN, and just do a checkout to the
website when it's ready, helps me avoid
ah, okay, sometimes the emails just don't seem to have posted (@_@;)
thanks for the tip, Jonathan! Yeah, I should really be keeping this
in some type of SVN or CVS or something someday...
andy
On Jun 19, 12:44 pm, Jonathan Langevin [EMAIL PROTECTED] wrote:
both of your responses showed up
?
thank you
sickrandir
On Apr 19, 6:26 pm,sickrandir[EMAIL PROTECTED] wrote:
I'm running a site with the latest stable version of cake 1.1 .
I disabled mod rewrite by uncommenting: define ('BASE_URL',
env('SCRIPT_NAME')); in core.php and deleting all the .htaccess file
with the latest stable version of cake 1.1 .
I disabled mod rewrite by uncommenting: define ('BASE_URL',
env('SCRIPT_NAME')); in core.php and deleting all the .htaccess file.
Everything seems to work except for the link inserted in the posts of
the home page.
The first time you load
at my online server information ( phpinfo() ). This
stated under Apache that the mod_rewrite module IS loaded.
My knowledge of server settings is limited but after reading allot of
posts about the mod rewrite issue i realized that in order for the mod
rewrite function to work, i would have to make
In my experiences, you can enable mod rewrite in some shared hosting
environments by placing something like this in a .htaccess file:
IfModule mod_rewrite.c
RewriteEngine on
RewriteRule^$ app/webroot/[L]
RewriteRule(.*) app/webroot/$1 [L]
/IfModule
What you'll notice though
RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
Hope this helps.
On May 2, 1:28 pm, Dustin Weber [EMAIL PROTECTED] wrote:
In my experiences, you can enable mod rewrite in some shared hosting
environments by placing something like this in a .htaccess file:
IfModule mod_rewrite.c
RewriteEngine
:
I'm running a site with the latest stable version of cake 1.1 .
I disabled mod rewrite by uncommenting: define ('BASE_URL',
env('SCRIPT_NAME')); in core.php and deleting all the .htaccess file.
Everything seems to work except for the link inserted in the posts of
the home page.
The first
Tried to figure out the problem by myself but without success...
Anyone can help?
thank you
sickrandir
On Apr 19, 6:26 pm, sickrandir [EMAIL PROTECTED] wrote:
I'm running a site with the latest stable version of cake 1.1 .
I disabled mod rewrite by uncommenting: define ('BASE_URL',
env
I'm running a site with the latest stable version of cake 1.1 .
I disabled mod rewrite by uncommenting: define ('BASE_URL',
env('SCRIPT_NAME')); in core.php and deleting all the .htaccess file.
Everything seems to work except for the link inserted in the posts of
the home page.
The first time you
ofay with mod rewrite}
(.*) - catches everything can this line be made more specific?
On 09/02/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hrmm, don't give up just yet! I just read the FAQ and it seems, if
indeed you have the type of hosting control mentioned in this FAQ
less specific? I dunno how that could be done.
maybe {yeah I am not fully ofay with mod rewrite}
(.*) - catches everything can this line be made more specific?
On 09/02/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hrmm, don't give up just yet! I just read the FAQ and it seems
be made to happen
a different format of error 404 this time. A bit plainer than before,
their
usual error 404 has a load of adverts on it
perhaps making that line less specific? I dunno how that could be
done.
maybe {yeah I am not fully ofay with mod rewrite}
(.*) - catches
I am also using the Business Pro account from UK 11 and also had the
same problems with mod_rewrite.
I fixed mine by using the following .htaccess files
/.htaccess
IfModule mod_rewrite.c
RewriteEngine on
RewriteRule^$ /app/webroot/[L]
RewriteRule(.*) /app/webroot/$1 [L]
Thanks PaulV. Thats hitting the nail squarely on the head. And right in the
sweet spot too.
worked first time. Although since I baked it in a project directory I only
needed the last two .htaccess
*mod_rewrite is voodoo. Damned cool voodoo, but still voodoo. ''*
Brian Moore
[EMAIL
into things
although it gives 404 errors, seeing as webroot doesn't currently exist.
though it does. Has anyone managed to get mod rewrite to work on 1and1
with cakephp or got any suggestions
is they a way to make this line (below) narrower / less specific?
RewriteRule (.*) webroot/$1[L]
I
managed to get mod rewrite to work on 1and1
with cakephp or got any suggestions
is they a way to make this line (below) narrower / less specific?
RewriteRule (.*) webroot/$1[L]
I read elsewhere on the web that other users have had issues with
mod_rewrite in wordpress
fore instance
Thanks for the response.
Changing AllowOverride from None to All is what got it working on my WAMP
server
as I understand Mod Rewrite won't work unless its set to All. As mod
rewrite does work
on the package (there are some rudimentary examples in their FAQ)
Their FAQ Page
http://faq.1and1.com
to All is what got it working on my WAMP
server
as I understand Mod Rewrite won't work unless its set to All. As mod
rewrite does work
on the package (there are some rudimentary examples in their FAQ)
Their FAQ
Pagehttp://faq.1and1.com/scripting_languages_supported/configuring_apache
thanks - I am certain this can be made to happen
a different format of error 404 this time. A bit plainer than before, their
usual error 404 has a load of adverts on it
perhaps making that line less specific? I dunno how that could be done.
maybe {yeah I am not fully ofay with mod rewrite
specific? I dunno how that could be done.
maybe {yeah I am not fully ofay with mod rewrite}
(.*) - catches everything can this line be made more specific?
On 09/02/07, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hrmm, don't give up just yet! I just read the FAQ and it seems, if
indeed
Hi, I'm new to frameworks and am checking out Cake. I do NOT have
mod-rewrite on my computer but I did set up Cake in the config file to
use pretty URLs instead of Mod rewrite. I'm using the development
install, and I can see the styled default page at localhost/cake and it
says that it can
http://manual.cakephp.org/appendix/blog_tutorial
See Section 5.
--~--~-~--~~~---~--~~
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
Thanks, I finished the tutorial!
--~--~-~--~~~---~--~~
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
Hi again, I've moved on to trying out the scaffolding feature on one of
my tables. I set up the model and controller but when I view the
scaffold in my web browser I see all the table data but in the right
most column under actions I get a bunch of errors like:
Notice: Undefined index: id in
Nevermind, forgot 'id' was case sensative...
--~--~-~--~~~---~--~~
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
Try doing it the cake way. form action="" echo $html-url('/executions/index/'); ? method=postWill make your app portable.-- /*** @author Larry E. Masters
* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic*/On 5/31/06,
[EMAIL PROTECTED] [EMAIL PROTECTED]
Yes, It works well too and it's like the the cake way
But is it normal than I should add it to all my baked form ?
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email
Yes it would be normal since the html is not parsed by PHP and there is not way to add the needed paths that mod rewrite would normally handle. All forms should be created that way, as a matter of fact the helpers should be used as much as possible so errors like this will not sneak into your code
so the bake should generate
form action=?php echo $html-url('/executions/index/'); ?
method=post
instead of
form action=/executions/index/ method=post
shouldn't it
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google
I've upgraded but my View was generated first and it does.
I'll check it first next time
Thanks you
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake
PHP group.
To post to this group, send email to
hi all
the following goes probably even further on the path to the cake way :
? echo $html-formTag(/executions/index/,post) ?
doesn't it ?
++
clemos
On 5/31/06, Larry E. Masters aka PhpNut [EMAIL PROTECTED] wrote:
Try doing it the cake way.
form action=?php echo
clemos,No the way I showed it is the cake way.-- /*** @author Larry E. Masters* @var string $userName* @param string $realName* @returns string aka PhpNut* @accesspublic*/
On 5/31/06, clemos [EMAIL PROTECTED] wrote:
hi allthe following goes probably even further on the path to the cake way :?
79 matches
Mail list logo