[英]How to integrate codeigniter website from live to local server
I have a website source code which is built in codeigniter. 我有一个内置在codeigniter中的网站源代码。 I am trying to setup it into local wamp server but not working properly. 我正在尝试将其设置到本地Wamp服务器中,但无法正常工作。
I have done following things: 我已经做了以下事情:
But its not working. 但是它不起作用。 (Screen Shot attached). (附有屏幕截图)。
.htaccess file looks like this .htaccess文件看起来像这样
Please help me for this issue. 请帮我解决这个问题。
Thanks in advance 提前致谢
try in .htaccess 尝试.htaccess
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_URI} ^sys.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_URI} ^app.*
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
ErrorDocument 404 /index.php
</IfModule>
assumming that index.php is your index page. 假设index.php是您的索引页面。
and sys is your system folder and app is your application folder. sys是您的系统文件夹, app是您的应用程序文件夹。
and change in config.php 并更改config.php
$config['index_page'] = '';
the problem I think is with the htaccess. 我认为问题是htaccess。 Try this 尝试这个
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /FOLDER_NAME/index.php?/$1 [L]
change FOLDER_NAME with the name of the local directory. 将FOLDER_NAME更改为本地目录的名称。
检查是否已使用“ http://”将基本URL放在config.php文件中。如果未输入“ http://”,请检查
Please try this: 请尝试以下方法:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /folder_name/index.php?/$1 [L]
Also check if php installed properly in the stack. 还要检查php是否在堆栈中正确安装。
Maybe reinstalling the WAMP stack might help. 也许重新安装WAMP堆栈可能会有所帮助。
Alternately I would be curious to check maybe in XAMPP to see if its something with the wamp. 或者,我很想检查XAMPP中的内容是否与WAMP有关。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.