我在服务器上传了我的codeigniter网站。在网站上的服务器上载网站后,一些图像显示,一些图像显示不正确..还有一些文字显示在寄宿生..
我使用filezila将文件从本地上传到服务器。
这里是.htaccess
RewriteEngine On
RewriteBase /beta/lalcoresidency
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index\.php|images|robots\.txt|css|docs|js|system)
RewriteRule ^(.*)$ /beta/lalcoresidency/index.php?/$1 [L]
我的config.php
$config['base_url'] = 'https://www.lalcoresidency.com/beta/lalcoresidency/';
$config['index_page'] = '';
$config['uri_protocol'] = 'REQUEST_URI';
$config['url_suffix'] = '';
$config['language'] = 'english';
$config['charset'] = 'UTF-8';
$config['enable_hooks'] = FALSE;
$config['subclass_prefix'] = 'MY_';
这是我的网站链接
https://www.lalcoresidency.com/beta/lalcoresidency/home
请帮我找出解决方案。我尝试了很多,但没有得到解决方案..请帮助
答案 0 :(得分:1)
您的服务器在HTTPS上运行,您通过HTTP请求Google字体。将所有http更改为https。
示例:
public class User
{
public int Id { get; set; }
// other properties
// ...
// UserRole association
public virtual ICollection<UserRole> UserRoles { get; set; }
}
public class Role
{
public int Id { get; set; }
// other properties
// ...
// UserRole association
public virtual ICollection<UserRole> UserRoles { get; set; }
}
public class UserRole
{
public int UserId { get; set; }
public int RoleId { get; set; }
public virtual User User { get; set; }
public virtual Role Role { get; set; }
}
到
public virtual DbSet<DomainModels.Security.Role> Roles { get; set; }
public virtual DbSet<DomainModels.Security.User> Users { get; set; }
public virtual DbSet<DomainModels.Security.UserRoles> UserRoles { get; set; }