I've created a MVC
application using php
, but when I try to access the urls it gives me "The server encountered an internal error"
When I check the log it gives me :
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at admin@example.com to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
my .htaccess
file Code:
Options-MultiViews
RewriteEngine On
RewriteBase/MVC/public
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
Best Answer
This problem comes due to wampserver using local.
You can change it with:
Left click on wampsever
Go to APACHE -> APACHE MODULES
scroll down and find "rewrite_module"
Then mark it check
It will restart automatically. All set.