# |
Apr 20th 2017, 21:32 |
Erik180486 |
RewriteBase /smartmommy |
# |
Apr 20th 2017, 21:32 |
Erik180486 |
RewriteEngine On |
# |
Apr 20th 2017, 21:32 |
Erik180486 |
<IfModule mod_rewrite.c> |
# |
Apr 20th 2017, 21:32 |
Erik180486 |
webroot is |
# |
Apr 20th 2017, 21:32 |
Erik180486 |
RewriteRule ^$ webroot/ [L] |
# |
Apr 20th 2017, 21:32 |
Erik180486 |
</IfModule> |
# |
Apr 20th 2017, 21:32 |
Erik180486 |
RewriteRule (.*) webroot/$1 [L] |
# |
Apr 20th 2017, 21:32 |
Erik180486 |
RewriteBase /smartmommy |
# |
Apr 20th 2017, 21:32 |
Erik180486 |
RewriteEngine on |
# |
Apr 20th 2017, 21:32 |
Erik180486 |
<IfModule mod_rewrite.c> |
# |
Apr 20th 2017, 21:32 |
Erik180486 |
root htaccess is |
# |
Apr 20th 2017, 21:31 |
Erik180486 |
also pushed it because I changed the .htaccess |
# |
Apr 20th 2017, 21:31 |
Erik180486 |
done |
# |
Apr 20th 2017, 21:29 |
technofection |
Put it in your root htaccess, also pull the webroot/.htaccess and upload it |
# |
Apr 20th 2017, 21:29 |
technofection |
IfModule mod_rewrite.c> RewriteEngine on RewriteBase /smartmommy RewriteRule (.*) webroot/$1 [L] RewriteRule ^$ webroot/ [L] </IfModule |
# |
Apr 20th 2017, 21:28 |
technofection |
oops, hold |
# |
Apr 20th 2017, 21:28 |
technofection |
IfModule mod_rewrite.c> RewriteRule (.*) webroot/$1 [L] RewriteRule ^$ webroot/ [L] [2:57] RewriteEngine on [2:57] </IfModule |
# |
Apr 20th 2017, 21:27 |
technofection |
ahh, thats wrong.. it should be |
# |
Apr 20th 2017, 21:27 |
Erik180486 |
</IfModule> |
# |
Apr 20th 2017, 21:27 |
Erik180486 |
RewriteRule (.*) webroot/$1 [L] |
# |
Apr 20th 2017, 21:27 |
Erik180486 |
RewriteBase /smartmommy |
# |
Apr 20th 2017, 21:27 |
Erik180486 |
RewriteRule ^$ webroot/ [L] |
# |
Apr 20th 2017, 21:27 |
Erik180486 |
RewriteEngine on |
# |
Apr 20th 2017, 21:27 |
Erik180486 |
<IfModule mod_rewrite.c> |
# |
Apr 20th 2017, 21:26 |
technofection |
How does your ROOT .htaccess look like now? |
# |
Apr 20th 2017, 21:22 |
Erik180486 |
done |
# |
Apr 20th 2017, 21:22 |
technofection |
and upload to server |
# |
Apr 20th 2017, 21:22 |
technofection |
@erik180486 , pull webroot/.htaccess |
# |
Apr 20th 2017, 21:20 |
Erik180486 |
:( |
# |
Apr 20th 2017, 21:20 |
technofection |
@erik180486 , not really still problem with htaccess, none of the css / images are loaded |
# |
Apr 20th 2017, 21:19 |
technofection |
@rudy1976s you can also use Models intialize event and push the Auth user to the models |
# |
Apr 20th 2017, 21:18 |
rudy1976s |
okay but I need to save the user which is currently editing the record |
# |
Apr 20th 2017, 21:17 |
Erik180486 |
not sure what it is :) |
# |
Apr 20th 2017, 21:17 |
Erik180486 |
but is that okay? |
# |
Apr 20th 2017, 21:17 |
technofection |
@erik180486 , you can configure that in app.php as said |
# |
Apr 20th 2017, 21:16 |
inoas |
so that things fail when you forget to pass it down or the user is not logged in |
# |
Apr 20th 2017, 21:16 |
inoas |
and add a behavior that checks if a given user_id actually exists/is active |
# |
Apr 20th 2017, 21:16 |
inoas |
you can pass down the user on the save actions |
# |
Apr 20th 2017, 21:15 |
inoas |
if you want to respect the layers |
# |
Apr 20th 2017, 21:15 |
rudy1976s |
so I decided to go for the easier and faster way |
# |
Apr 20th 2017, 21:15 |
rudy1976s |
I was trying Muffin Footprint but I was not able to make it work |