php - 404 - File or directory not found. The resource you are looking for might have been removed, had its name changed, or is temporarily unavailable -
i have developed project on codeigniter php framework. it's working on localhost xampp running. have uploaded whole project in "wwwroot" folder , can opening page. when try click on link get:
http error 404.0 - not found resource looking has been removed, had name changed, or temporarily unavailable..
here websiter link: link : http://www.iimkondigre.in/ problem link : http://www.iimkondigre.in/course_archive
is .htaccess file:
rewriteengine on rewritecond $1 !^(index\.php|images|css|js|fonts|prototype|robots\.txt|favicon\.ico|webservices) rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ ./index.php?/$1 [l,qsa]
try it.
open config.php , following replaces
$config['index_page'] = "index.php" $config['index_page'] = ""
in cases default setting uri_protocol not work properly. replace
$config['uri_protocol'] ="auto" $config['uri_protocol'] = "request_uri"
.htaccess
<ifmodule mod_rewrite.c> rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule ^(.*)$ index.php/$1 [l] </ifmodule>
for windows server
web.config
file
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.webserver> <rewrite> <rules> <rule name="myrule"> <match url="^(.*)$" /> <conditions> <add input="{request_filename}" matchtype="isfile" negate="true" /> <add input="{request_filename}" matchtype="isdirectory" negate="true" /> </conditions> <action type="rewrite" url="index.php/{r:1}" appendquerystring="false" /> </rule> </rules> </rewrite> </system.webserver> </configuration>
Comments
Post a Comment