Php 找不到CodeIgniter 404页面htaccess wamp
我正在开发以前开发的CodeIgniter应用程序 我遇到的问题是找不到一个页面,我已经在wamp上安装了 下面是我当前用于应用程序的.htaccess文件(不是wamp文件) 我如何着手解决404问题?我要更改wamp.htaccess文件吗 谢谢,,Php 找不到CodeIgniter 404页面htaccess wamp,php,apache,.htaccess,codeigniter,wamp,Php,Apache,.htaccess,Codeigniter,Wamp,我正在开发以前开发的CodeIgniter应用程序 我遇到的问题是找不到一个页面,我已经在wamp上安装了 下面是我当前用于应用程序的.htaccess文件(不是wamp文件) 我如何着手解决404问题?我要更改wamp.htaccess文件吗 谢谢,, Kevin Davis尝试使用下面的.htaccess文件 # Turn on URL rewriting RewriteEngine On RewriteBase /FOLDERNAME/ #Add your foldername in
Kevin Davis尝试使用下面的.htaccess文件
# Turn on URL rewriting
RewriteEngine On
RewriteBase /FOLDERNAME/ #Add your foldername in place of FOLDERNAME
# Allow these directories and files to be displayed directly:
RewriteRule ^(index\.php|css|js|fonts|images|uploads|audio) - [PT,L]
# Rewrite all other URLs to index.php/URL
# RewriteRule .* index.php?/$0 [PT,L,QSA]
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
重新启动发动机
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^(.*)$index.php/$1[L]
希望这能对您有所帮助。如果这是一个“以前开发的”应用程序,是否希望找到此“未找到页面”?或者你只是在问如何处理实际上不存在的页面?该页面确实存在,我不希望找到找不到的页面。它们存在于views目录中。这个不存在的现有页面的URL示例是?有页面吗?好的,给你。。。主页:工作,然后我将转到另一个页面:。这就是我的问题所在。它当前存储在以下文件夹中:\www\foldername\using wamp。那么在本例中,partners是控制器名称吗?第一个测试-localhost/sitename/index.php/partners是否有效?根目录中是否有其他htacess文件?否。。但是,我使用的是wamp。
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>