ramjerdnews Posted February 16, 2017 Share Posted February 16, 2017 hi mr i have free hosting reselers and i have a problem when i go to a sub domin it dose not exist it go to a unkowun website but i want to change this going to my home webpage reseler i need htaccess for this and 404 and another erorr to change it please help me what i do ? Link to comment Share on other sites More sharing options...
roseywhite01 Posted February 16, 2017 Share Posted February 16, 2017 (edited) ErrorDocument 404 https://linkto404page.com/ This should work. Edited February 16, 2017 by roseywhite01 Link to comment Share on other sites More sharing options...
ramjerdnews Posted February 16, 2017 Author Share Posted February 16, 2017 for when i go to a sub domin it dose not exist it go to a unkowun website but i want to change this going to my home webpage reseler what i do?? ErrorDocument 404 https://linkto404page.com not loaded Link to comment Share on other sites More sharing options...
roseywhite01 Posted February 16, 2017 Share Posted February 16, 2017 You did change the https://linkto404page.com/ to your reseller's URL, right? Link to comment Share on other sites More sharing options...
ramjerdnews Posted February 16, 2017 Author Share Posted February 16, 2017 no i want to change but i cant change Link to comment Share on other sites More sharing options...
mike Posted February 16, 2017 Share Posted February 16, 2017 (edited) 6 hours ago, ramjerdnews said: no i want to change but i cant change Please note that this should be on the resellers area. If you have access to the FTP, please enter htdocs directory, and find the .htaccess and modify it. Edited February 16, 2017 by mike Add info Link to comment Share on other sites More sharing options...
ramjerdnews Posted February 17, 2017 Author Share Posted February 17, 2017 what i text in modify . htaccess ? Link to comment Share on other sites More sharing options...
ramjerdnews Posted February 17, 2017 Author Share Posted February 17, 2017 i can change it htaccess by ErrorDocument 401 /error/401.php ErrorDocument 403 /error/403.php ErrorDocument 404 /error/404.php ErrorDocument 500 /error/500.php ? Link to comment Share on other sites More sharing options...
roseywhite01 Posted February 17, 2017 Share Posted February 17, 2017 Yeah, that should work Link to comment Share on other sites More sharing options...
ramjerdnews Posted February 17, 2017 Author Share Posted February 17, 2017 you have the files??? 404.php and and and ??? and whats the place i will upload it? Link to comment Share on other sites More sharing options...
roseywhite01 Posted February 17, 2017 Share Posted February 17, 2017 Use the FTP manager to upload to /htdocs, and you should make the error pages yourself, they don't need any special coding in them x) Link to comment Share on other sites More sharing options...
ramjerdnews Posted February 17, 2017 Author Share Posted February 17, 2017 i uploaded it but the webpage subdomin not exist fooloing unkown website for example sdfsdfsdf.ramjerdnews.ir Link to comment Share on other sites More sharing options...
roseywhite01 Posted February 17, 2017 Share Posted February 17, 2017 You cannot change the 404 page for nonexistent domains, sorry. Only defaults for sites that do exist. Link to comment Share on other sites More sharing options...
Admin Posted February 19, 2017 Share Posted February 19, 2017 you should NOT change the 401 status code handler, 401 is sent to the browser when a basic authentication challenge is required,, so setting 401 as an errordocument will break password protected folders. Link to comment Share on other sites More sharing options...
Recommended Posts