Weird URLs
Hi, I have just installed phpredis. The index page works for me, but when I click on links, I'm redirected to wrong sites with no graphics in it (css is not being applied, because the URLs to the CSS files look like this one: http://phpredmin.loc/index.php/welcome/config/0/bootstrap/css/bootstrap.min.css).
The site urls look like this: http://phpredmin.loc/index.php/welcome/index/0/0 http://phpredmin.loc/index.php/welcome/info/0/0 http://phpredmin.loc/index.php/welcome/config/0/0
I don't know what I could have done wrong, I'm sending my virtual host config, just to be sure:
<VirtualHost *:80>
ServerName phpredmin.loc
ServerAlias phpredmin
DocumentRoot "/Users/rasta/DEV/phpredmin/public"
DirectoryIndex index.php
<Directory "/Users/rasta/DEV/phpredmin/public">
Require all granted
Options Indexes
</Directory>
ProxyPassMatch ^/(.*\.php(/.*)?)$ fcgi://127.0.0.1:9000/Users/rasta/DEV/phpredmin/public/$1
ErrorLog "/usr/local/var/log/apache2/phpredmin.loc-error_log"
CustomLog "/usr/local/var/log/apache2/phpredmin.loc-access_log" common
</VirtualHost>
I was also checking the layou.php file and I've seen lines like this in there:
<?= $this->router->baseUrl?>/bootstrap/css/bootstrap.min.css ?>
But I don't really have time to find out, why $this->router->baseUrl outputs the whole site URL
Hi, sorry for delay.
Can you see what does $_SERVER contain?