Posts by Debora Cristina • 31 points
4 posts
-
0
votes2
answers82
viewsA: Relationship of 1 attribute with different tables
Once the field local_de_work is related to a or another table, it is not possible to treat it as a Foreign key, what you can do in that case is to have another field (ex: tipo_local_de_work)…
-
2
votes2
answers383
viewsA: http redirect to https via . htaccess - Godaddy
Try adding the following line to your . htaccess (giving a blank line after the line RewriteRule ^(.*)$ public/$1 [L] RewriteCond %{HTTPS} off RewriteRule ^ https://www.seudominio.com{REQUEST_URI}…
htaccessanswered Debora Cristina 31 -
0
votes2
answers143
viewsA: Htaccess that directs to https and also to www
That should solve your problem RewriteCond %{HTTP_HOST} ^(www\.)(.+) [OR] RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^(www\.)?(.+) RewriteRule ^ https://%2%{REQUEST_URI} [R=301,L]…
-
0
votes1
answer34
viewsA: Delete table data when it reaches a certain number
Since it is not possible to run a delete using the same table in a subquery, you should do this in two steps: First, you can select the first item of the tb_chat table based on the amount of…