简体   繁体   English

部署php网站

[英]deploy an php web site

I need help please. 我需要帮助。 I hosted a website designed with codeigniter on a remote server, but I can not access the pages.Jai as 404 page not found error. 我在远程服务器上托管了一个使用codeigniter设计的网站,但无法访问这些页面。找不到404页面错误。

Here is the contents of the config.php file 这是config.php文件的内容

$ config ['base_url'] ='http://www.SitePhp';
$ config ['index_page'] ='';

Here is the content of the .htaccess file 这是.htaccess文件的内容

Options -Indexes
RewriteEngine On
RewriteCond $1 !^(index\.php|assets/|robots\.txt)
RewriteRule ^ (. *)$ index.php/$ 1 [L]

Thank you. 谢谢。

htaccess htaccess的

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

and shared host open mod_rewrite module. 并共享主机打开mod_rewrite模块。

$config['base_url'] ='http://www.SitePhp.com/'; 

will be 将会

http://www.SitePhp.com etc.

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM