I have a problem with .htaccess file, I think this is all about it. When I trying to run my website on screen show errors:
Warning: require(DIR/bootstrap/autoload.php) [function.require]: failed to open stream: No such file or directory in /index.php on line 21
Warning: require_once(DIR/bootstrap/start.php) [function.require-once]: failed to open stream: No such file or directory in /index.php on line 35
Fatal error: require_once() [function.require]: Failed opening required 'DIR/bootstrap/start.php' (include_path='.:/:/usr/local/php/pear5') in /index.php on line 35
I found some solution but its not works. This is my .htaccess file:
# Use PHP 5.3
AddHandler application/x-httpd-php53 .php
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L] </IfModule>
The version of php on my server is 5.3
Please help.
webapp
inhtdocs
Andindex.php
is insidepublic
folder i.e.htdocs/webapp/public/index.php
, Trylocalhost:8080/webapp/public/
. – Hasib Mahmud