Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Weird URLs #58

Open
Rastusik opened this issue Aug 15, 2014 · 1 comment
Open

Weird URLs #58

Rastusik opened this issue Aug 15, 2014 · 1 comment

Comments

@Rastusik
Copy link

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

@sasanrose
Copy link
Owner

Hi, sorry for delay.

Can you see what does $_SERVER contain?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants