when i create .htaccess file
and i insert this code
RewriteEngine on
RewriteCond %{HTTP_HOST} ^
RewriteRule ^(.*)$ [R=301,L]
but it comes error like this
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@mydomaincom and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
anyone can help, why?
and i insert this code
RewriteEngine on
RewriteCond %{HTTP_HOST} ^
RewriteRule ^(.*)$ [R=301,L]
but it comes error like this
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator, webmaster@mydomaincom and inform them of the time the error occurred, and anything you might have done that may have caused the error.
More information about this error may be available in the server error log.
anyone can help, why?