How can I replace instead of prepending the url with fullBaseUrl?
I have this url: http://www.trayectos.efn.uncor.edu/web/sistemas/trayectos/, but what I want to have is only http://www.trayectos.efn.uncor.edu/, I put the option [‘fullBase’ => true], what do I have to put so that it shows only as i want?
Or maybe I have to put RewriteBase in .htaccess, but I don’t know what is the root directory of the app.
The site is uploaded to /var/www/html/web/sistemas/trayectos/
You should have your web server set up such that that DocumentRoot (or equivalent, if you’re not using Apache) points directly to the webroot
folder of your application (presumably, /var/www/html/web/sistemas/trayectos/webroot
, and then you shouldn’t need to change anything at all about URL settings from the defaults. Looks like you’ve got it pointed just to /var/www/html
right now.
Should I configure something else?
When I put the url (http://www.trayectos.efn.uncor.edu) it changes to http://172.18.64.7/web/sistemas/trayectos/webroot/
If it’s changing the domain name into an IP address, that really looks like a problem with either .htaccess
(but you should be using the standard version of that, as far as I can tell) or with your vhost setup in Apache (or whatever). Maybe share that configuration?
Instead of vhost is used apache redirect that is hosted in a server that I don’t have access, how should I configure cakephp to use apache redirect?
I understand what all those words mean by themselves, but don’t understand the meaning behind this particular grouping.
If it’s “Apache redirect that is hosted in a server that I don’t have access”, then how can you “configure CakePHP to use Apache redirect”? And how is the redirect on that server configured, if not in a vhost?
As Zuluru already said the connection between the domain and how your website is being accessed is configured in apache.
Its called the “docroot” and basically connects which absolute filepath is being shown when mydomain.com is being called.
So this is not something you can change in cakephp, its something the webserver admin needs to change.
You need to be able to put a info.php
in the webroot folder of cakephp, put
<?php phpinfo();
in there and call it via https://yourdomain.com/info.php
If the webserver is not configured that way you will not get the result you want.