apache - RewriteEngine is causing Error 500 -
i have been having trouble .htaccess file. below can see i'm trying do
- redirect incoming traffic http://hyperthunder.net/
- disable viewing .htaccess file
- disable listing directories
- custom error pages
the domains own on web host
- hyperthunder.net
- hyperthunder.com
and .htaccess file
// //domains //hyperthunder.net //hyperthunder.com //both domains on same webhosting // // //redirect // http://www.hyperthunder.net/ ---> http://hyperthunder.net/ // http://hyperthunder.com/ ---> http://hyperthunder.net/ // http://www.hyperthunder.com,/ ---> http://hyperthunder.net/ // options +followsymlinks rewriteengine on rewritecond %{http_host} ^www.hyperthunder.net[nc] rewritecond %{http_host} ^hyperthunder.com[nc] rewritecond %{http_host} ^www.hyperthunder.com rewriterule ^(.*)$ http://hyperthunder.net/$1 [r=301,nc] // //custom errors // errordocument 400 /customerrors/400.html errordocument 401 /customerrors/401.html errordocument 403 /customerrors/403.html errordocument 404 /customerrors/404.html errordocument 500 /customerrors/500.html // //prevent viewing of .htaccess file // <files .htaccess> order allow,deny deny </files> // //prevent directory listing // options -indexes
i can't figure out wrong. able view homepage if attempt hyperthunder.net/index.html return error 500 .com domain.
(posted on behalf of op).
found fix!
redirect multiple domains 1 domain (with or without www before)
Comments
Post a Comment